Part Number Hot Search : 
26M00 LF353D SK9132 N82S135N 323ASM SII504 RN4988FS 150KR20A
Product Description
Full Text Search
 

To Download PSD813F3VA-70JIT Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  may 2009 doc id 7833 rev 7 1/128 1 psd8xxfx flash in-system programmable (isp) peripherals for 8-bit mcus, 5 v features flash in-system programmable (isp) peripheral for 8-bit mcus dual bank flash memories ? up to 2 mbit of primary flash memory (8 uniform sectors, 32k x8) ? up to 256 kbit secondary flash memory (4 uniform sectors) ? concurrent operation: read from one memory while erasing and writing the other up to 256 kbit sram 27 reconfigurable i/oports enhanced jtag serial port pld with macrocells ? over 3000 gates of pld: cpld and dpld ? cpld with 16 output macrocells (omcs) and 24 input macrocells (imcs) ? dpld - user defined internal chip select decoding 27 individually configurable i/o port pins they can be used for the following functions: ? mcu i/os ? pld i/os ? latched mcu address output ? special function i/os. ? 16 of the i/o ports may be configured as open-drain outputs. in-system programming (isp) with jtag ? built-in jtag compliant serial port allows full-chip in-system programmability ? efficient manufacturing allow easy product testing and programming ? use low cost flashlink cable with pc page register ? internal page register that can be used to expand the microcontroller address space by a factor of 256 programmable power management packages are ecopack ? table 1. device summary reference part number psd8xxfx psd813f2 psd813f4 psd813f5 psd833f2 psd834f2 psd853f2 psd854f2 pqfp52 (m) plcc52 (j) tqfp64 (u) www.st.com
contents psd8xxfx 2/128 doc id 7833 rev 7 contents 1 summary description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3 psd architectural overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.1 memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.2 page register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.3 plds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.4 i/o ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.5 mcu bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.6 jtag port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.7 in-system programming (isp) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.8 power management unit (pmu) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4 development system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5 psd register description and address offset . . . . . . . . . . . . . . . . . . . . 24 6 detailed operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.1 memory blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.2 description of primary flash memory and secondary flash memory . . . 27 6.3 memory block select signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 6.3.1 ready/busy (pc3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 6.3.2 memory operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 7 instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.1 power-up mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.2 read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.3 read memory contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 7.4 read primary flash identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 7.5 read memory sector protection status . . . . . . . . . . . . . . . . . . . . . . . . . . 31 7.6 reading the erase/program status bits . . . . . . . . . . . . . . . . . . . . . . . . . . 31 7.7 data polling flag (dq7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
psd8xxfx contents doc id 7833 rev 7 3/128 7.8 toggle flag (dq6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 7.9 error flag (dq5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7.10 erase timeout flag (dq3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 8 programming flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 8.1 data polling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 8.2 data toggle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 8.3 unlock bypass (psd833f2x, psd834f2x, psd853f2x, psd854f2x) . . 36 9 erasing flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 9.1 flash bulk erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 9.2 flash sector erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 9.3 suspend sector erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 9.4 resume sector erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 10 specific features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 10.1 flash memory sector protect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 10.2 reset flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 10.3 reset (reset) signal (on the psd83xf2 and psd85xf2) . . . . . . . . . . . 41 11 sram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 12 sector select and sram select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 12.1 example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 12.2 memory select configuration for mcus with separate program and data spaces 43 12.3 configuration modes for mcus with separate program and data spaces 44 12.3.1 separate space modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 12.3.2 combined space modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 13 page register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 14 plds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 14.1 the turbo bit in psd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 14.2 decode pld (dpld) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 14.3 complex pld (cpld) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
contents psd8xxfx 4/128 doc id 7833 rev 7 14.4 output macrocell (omc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 14.5 product term allocator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 14.6 loading and reading the output macrocells (omc) . . . . . . . . . . . . . . . . . 54 14.7 the omc mask register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 14.8 the output enable of the omc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 14.9 input macrocells (imc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 15 mcu bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 15.1 psd interface to a multiplexed 8-bit bus . . . . . . . . . . . . . . . . . . . . . . . . . . 60 15.2 psd interface to a non-multiplexed 8-bit bus . . . . . . . . . . . . . . . . . . . . . . 60 15.3 data byte enable refe rence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 15.4 mcu bus interface examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 15.5 80c31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 15.6 80c251 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 15.7 80c51xa . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 15.8 68hc11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 16 i/o ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 16.1 general port architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 16.2 port operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 16.3 mcu i/o mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 16.4 pld i/o mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 16.5 address out mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 16.6 address in mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 16.7 data port mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 16.8 peripheral i/o mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 16.9 jtag in-system programming (isp) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 16.10 port configuration registers (pcr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 16.11 control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 16.12 direction register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 16.13 drive select register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 16.14 port data registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 16.15 data in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 16.16 data out register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
psd8xxfx contents doc id 7833 rev 7 5/128 16.17 omc mask register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 16.18 input macro (imc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 16.19 enable out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 16.20 ports a and b ? functionality and structure . . . . . . . . . . . . . . . . . . . . . . . 75 16.21 port c ? functionality and structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 16.22 port d ? functionality and structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 16.23 external chip select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 17 power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 17.1 automatic power-down (apd) unit and power-down mode . . . . . . . . . . . 80 17.2 for users of the hc11 (or compatible) . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 17.3 other power saving options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 17.4 pld power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 17.5 psd chip select input (csi, pd2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 17.6 input clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 17.7 input control signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 18 reset timing and device status at reset . . . . . . . . . . . . . . . . . . . . . . . . 85 18.1 power-up reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 18.2 warm reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 18.3 i/o pin, register and pld status at reset . . . . . . . . . . . . . . . . . . . . . . . . . 85 18.4 reset of flash memory erase and program cycles (on the psd834fx) . 85 19 programming in-circuit using the jtag se rial interface . . . . . . . . . . . 87 19.1 standard jtag signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 19.2 jtag extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 19.3 security and flash memory protection . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 20 initial delivery state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 21 maximum rating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 22 ac/dc parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 23 package mechanical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
contents psd8xxfx 6/128 doc id 7833 rev 7 24 part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 appendix a pqfp52 pin assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 appendix b plcc52 pin assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 appendix c tqfp64 pin assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
psd8xxfx list of tables doc id 7833 rev 7 7/128 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. product range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 3. plcc52 pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 table 4. pld i/o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 table 5. jtag signals on port c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 6. methods for programming different functional blocks of the psd. . . . . . . . . . . . . . . . . . . . 22 table 7. i/o port latched address output assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 8. register address offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 9. memory block size and organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 10. instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 table 11. status bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 12. sector protection/security bit definition ? flash protection register. . . . . . . . . . . . . . . . . . 41 table 13. sector protection/security bit definition ? psd/ee protection register . . . . . . . . . . . . . . . 41 table 14. vm register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 15. dpld and cpld inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 table 16. output macrocell port and data bit assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 table 17. mcus and their control signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 table 18. 8-bit data bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 table 19. 80c251 configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 table 20. port operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 21. port operating mode settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 table 22. i/o port latched address output assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 table 23. port configuration registers (pcr)t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 24. port pin direction control, output enable p.t. not defined . . . . . . . . . . . . . . . . . . . . . . . . 73 table 25. port pin direction control, output enable p.t. defined . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 26. port direction assignment example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 27. drive register pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 28. port data registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 table 29. power-down mode?s effect on ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 0 table 30. psd timing and standby current during power-down mode . . . . . . . . . . . . . . . . . . . . . . . . 81 table 31. power management mode registers pmmr0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 32. power management mode registers pmmr2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 table 33. apd counter operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 34. status during power-on reset, warm reset and power-down mode. . . . . . . . . . . . . . . . . . 86 table 35. jtag port signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 table 36. jtag enable register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 table 37. absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 38. example of psd typical power calculation at v cc =5.0 v (turbo mode on) . . . . . . . . . . . . 93 table 39. example of psd typical power calculation at v cc = 5.0 v (turbo mode off) . . . . . . . . . . . 94 table 40. operating conditions (5 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 table 41. operating conditions (3 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 table 42. ac signal letters for pld timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 table 43. ac signal behavior symbols for pld timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 table 44. ac measurement conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 table 45. capacitance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 table 46. dc characteristics (5 v devices). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 table 47. dc characteristics (3 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 table 48. cpld combinatorial timing (5 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
list of tables psd8xxfx 8/128 doc id 7833 rev 7 table 49. cpld combinatorial timing (3 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 table 50. cpld macrocell synchronous clock mode timing (5 v devices) . . . . . . . . . . . . . . . . . . . 101 table 51. cpld macrocell synchronous clock mode timing (3 v devices). . . . . . . . . . . . . . . . . . . . 102 table 52. cpld macrocell asynchronous clock mode timing (5 v devices). . . . . . . . . . . . . . . . . . . 103 table 53. cpld macrocell asynchronous clock mode timing (3 v devices) . . . . . . . . . . . . . . . . . . 104 table 54. input macrocell timing (5 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 05 table 55. input macrocell timing (3 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 05 table 56. read timing (5 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 table 57. read timing (3 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 table 58. write timing (5 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 table 59. write timing (3 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 table 60. program, write and erase times (5 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 table 61. program, write and erase times (3 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 table 62. port a peripheral data mode read timing (5 v devices) . . . . . . . . . . . . . . . . . . . . . . . . 111 table 63. port a peripheral data mode read timing (3v devices) . . . . . . . . . . . . . . . . . . . . . . . . . 112 table 64. port a peripheral data mode write timing (5 v devices). . . . . . . . . . . . . . . . . . . . . . . . 112 table 65. port a peripheral data mode write timing (3 v devices). . . . . . . . . . . . . . . . . . . . . . . . 113 table 66. reset (reset) timing (5 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 table 67. reset (reset) timing (3 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 table 68. isc timing (5 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 table 69. isc timing (3 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 table 70. power-down timing (5 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 5 table 71. power-down timing (3 v devices) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 5 table 72. pqfp52 - 52-pin plastic quad flat package mechanical dimensions . . . . . . . . . . . . . . . . 117 table 73. plcc52-52-lead plastic lead chip carrier mechanical dimensions . . . . . . . . . . . . . . . . . . 118 table 74. tqfp64 - 64-lead thin quad flatpack, package mechanical data . . . . . . . . . . . . . . . . . . . 119 table 75. ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 table 76. pqfp52 connections (see features ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 table 77. plcc52 connections (see features ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 table 78. tqfp64 connections (see features ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 table 79. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
psd8xxfx list of figures doc id 7833 rev 7 9/128 list of figures figure 1. pqfp52 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 2. plcc52 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 3. tqfp64 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 4. psd block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 figure 5. psdsoft express development tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 figure 6. data polling flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 7. data toggle flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 figure 8. priority level of memory and i/o components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 figure 9. 8031 memory modules ? separate space. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 figure 10. 8031 memory modules ? combined space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 figure 11. page register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 figure 12. pld diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 figure 13. dpld logic array. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 figure 14. macrocell and i/o port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 figure 15. cpld output macrocell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 figure 16. input macrocell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 figure 17. handshaking communication using input macrocells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 figure 18. an example of a typical 8-bit multiplexed bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 figure 19. an example of a typical 8-bit non-multiplexed bus interface. . . . . . . . . . . . . . . . . . . . . . . . 61 figure 20. interfacing the psd with an 80c31. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 figure 21. interfacing the psd with the 80c251, with one read input . . . . . . . . . . . . . . . . . . . . . . . 63 figure 22. interfacing the psd with the 80c251, with rd and psen inputs. . . . . . . . . . . . . . . . . . . . 64 figure 23. interfacing the psd with the 80c51x, 8-bit data bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 figure 24. interfacing the psd with a 68hc11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 figure 25. general i/o port architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 figure 26. peripheral i/o mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 figure 27. port a and port b structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 figure 28. port c structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 figure 29. port d structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 figure 30. port d external chip select signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 figure 31. apd unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 figure 32. enable power-down flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 figure 33. reset (reset) timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 figure 34. pld icc /frequency consumption (5 v range) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 figure 35. pld icc /frequency consumption (3 v range) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 figure 36. ac measurement i/o waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 figure 37. ac measurement load circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 figure 38. switching waveforms ? key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 figure 39. input to output disable / enable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 figure 40. synchronous clock mode timing ? pld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 figure 41. asynchronous reset / preset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 figure 42. asynchronous clock mode timing (product term clock). . . . . . . . . . . . . . . . . . . . . . . . . . 103 figure 43. input macrocell timing (product term clock) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 figure 44. read timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 figure 45. write timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 figure 46. peripheral i/o read timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 figure 47. peripheral i/o write timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 figure 48. reset (reset) timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
list of figures psd8xxfx 10/128 doc id 7833 rev 7 figure 49. isc timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 figure 50. pqfp52 - 52-pin plastic quad flat package mechanical drawing . . . . . . . . . . . . . . . . . . . 117 figure 51. plcc52 - 52-lead plastic lead chip carrier package mechanical drawing . . . . . . . . . . . . 118 figure 52. tqfp64 - 64-lead thin quad flatpack, package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . 119
psd8xxfx summary description doc id 7833 rev 7 11/128 1 summary description the psd8xxfx family of memory systems for microcontrollers (mcus) brings in-system- programmability (isp) to flash memory and progra mmable logic. the result is a simple and flexible solution for embedded designs. psd devices combine many of the peripheral functions found in mcu based applications. ta bl e 2 summarizes all the devices. the cpld in the psd devices features an optimized macrocell logic architecture. the psd macrocell was created to address the unique requirements of embedded system designs. it allows direct connection between the system address/data bus, and the internal psd registers, to simplify communication between the mcu and other supporting devices. the psd device includes a jtag serial programming interface, to allow in-system programming (isp) of the entire device. this feature reduces development time, simplifies the manufacturing flow, and dramatically lowers the cost of field upgrades. using st?s special fast-jtag programming, a design can be rapidly programmed into the psd in as little as seven seconds. the innovative psd8xxfx family solves key problems faced by designers when managing discrete flash memory devices, such as: first-time in-system programming (isp) complex address decoding simultaneous read and write to the device. the jtag serial interface block allows in-system programming (isp), and eliminates the need for an external boot eprom, or an external programmer. to simplify flash memory updates, program execution is performed from a secondary flash memory while the primary flash memory is being updated. this solution avoids the complicated hardware and software overhead necessary to implement iap. st makes available a software development tool, psdsoft? express, that generates ansi- c compliant code for use with your target mcu. this code allows you to manipulate the non- volatile memory (nvm) within the psd. code examples are also provided for: flash memory iap via the uart of the host mcu memory paging to execute code across several psd memory pages loading, reading, and manipulation of psd macrocells by the mcu. table 2. product range part number (1) primary flash memory (8 sectors) secondary flash memory (4 sectors) sram i/o ports number of macrocells serial isp jtag/isc port turbo mode input output psd813f2 1 mbit 256 kbit 16 kbit 27 24 16 yes yes psd813f4 1 mbit 256 kbit none 27 24 16 yes yes psd813f5 1 mbit none none 27 24 16 yes yes psd833f2 1 mbit 256 kbit 64 kbit 27 24 16 yes yes psd834f2 2 mbit 256 kbit 64 kbit 27 24 16 yes yes
summary description psd8xxfx 12/128 doc id 7833 rev 7 figure 1. pqfp52 connections psd853f2 1 mbit 256 kbit 256 kbit 27 24 16 yes yes psd854f2 2 mbit 256 kbit 256 kbit 27 24 16 yes yes 1. all products support: jtag seri al isp, mcu parallel isp, isp flash me mory, isp cpld, security features, power management unit (pmu), automatic power-down (apd) table 2. product range (continued) part number (1) primary flash memory (8 sectors) secondary flash memory (4 sectors) sram i/o ports number of macrocells serial isp jtag/isc port turbo mode input output 39 ad15 38 ad14 37 ad13 36 ad12 35 ad11 34 ad10 33 ad9 32 ad8 31 v cc 30 ad7 29 ad6 28 ad5 27 ad4 pd2 pd1 pd0 pc7 pc6 pc5 pc4 v cc gnd pc3 pc2 pc1 pc0 1 2 3 4 5 6 7 8 9 10 11 12 13 52 51 50 49 48 47 46 45 44 43 42 41 40 pb0 pb1 pb2 pb3 pb4 pb5 gnd pb6 pb7 cntl1 cntl2 reset cntlo 14 15 16 17 18 19 20 21 22 23 24 25 26 pa7 pa6 pa5 pa4 pa3 gnd pa2 pa1 pa0 ad0 ad1 ad2 ad3 ai02858
psd8xxfx summary description doc id 7833 rev 7 13/128 figure 2. plcc52 connections pb0 pb1 pb2 pb3 pb4 pb5 gnd pb6 pb7 cntl1 cntl2 reset cntl0 pa7 pa6 pa5 pa4 pa3 gnd pa2 pa1 pa0 ad0 ad1 ad2 ad3 ad15 ad14 ad13 ad12 ad11 ad10 ad9 ad8 v cc ad7 ad6 ad5 ad4 pd2 pd1 pd0 pc7 pc6 pc5 pc4 v cc gnd pc3 pc2 pc1 pc0 8 9 10 11 12 13 14 15 16 17 18 19 20 46 45 44 43 42 41 40 39 38 37 36 35 34 21 22 23 24 25 26 27 28 29 30 31 32 33 47 48 49 50 51 52 1 2 3 4 5 6 7 ai02857
summary description psd8xxfx 14/128 doc id 7833 rev 7 figure 3. tqfp64 connections 48 cntl0 47 ad15 46 ad14 45 ad13 44 ad12 43 ad11 42 ad10 41 ad9 40 ad8 39 v cc 38 v cc 37 ad7 36 ad6 35 ad5 34 ad4 33 ad3 pd2 pd1 pd0 pc7 pc6 pc5 pc4 v cc v cc gnd gnd pc3 pc2 pc1 pc0 nc 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 nc nc pb0 pb1 pb2 pb3 pb4 pb5 gnd gnd pb6 pb7 cntl1 cntl2 reset nc 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 nc nc pa7 pa6 pa5 pa4 pa3 gnd gnd pa2 pa1 pa0 ad0 ad1 nd ad2 ai09645b
psd8xxfx pin description doc id 7833 rev 7 15/128 2 pin description table 3. plcc52 pin description (1) pin name pin type description adio0-7 30-37 i/o this is the lower address/data port. connect your mcu address or address/data bus according to the following rules: if your mcu has a multiplexed address/data bus where the data is multiplexed with the lower address bits, connect ad0-ad7 to this port. if your mcu does not have a multiplexed a ddress/data bus, or you are using an 80c251 in page mode, connect a0-a7 to this port. if you are using an 80c51xa in burst mode, connect a4/d0 through a11/d7 to this port. ale or as latches the address. the psd drives data out only if the read signal is active and one of the psd functional blocks was selected. the addresses on this port are passed to the plds. adio8-15 39-46 i/o this is the upper address/data port. connect your mcu address or address/data bus according to the following rules: if your mcu has a multiplexed address/data bus where the data is multiplexed with the lower address bits, connect a8-a15 to this port. if your mcu does not have a multiplexed addr ess/data bus, connect a8-a15 to this port. if you are using an 80c251 in page mode, connect ad8-ad15 to this port. if you are using an 80c51xa in burst mode , connect a12/d8 through a19/d15 to this port. ale or as latches the address. the psd drives data out only if the read signal is active and one of the psd functional blocks was selected. the addresses on this port are passed to the plds. cntl0 47 i the following control signals can be connec ted to this port, based on your mcu: wr ? active low write strobe input. r_w ? active high read/active low write input. this port is connected to the plds. therefore, these signals can be used in decode and other logic equations. cntl1 50 i the following control signals can be connec ted to this port, based on your mcu: rd ? active low read strobe input. e ? e clock input. ds ? active low data strobe input. psen ? connect psen to this port when it is being used as an active low read signal. for example, when the 80c251 outputs more than 16 address bits, psen is actually the read signal. this port is connected to the plds. therefore, these signals can be used in decode and other logic equations. cntl2 49 i this port can be used to input the psen (program select enable) signal from any mcu that uses this signal for code exclusively. if your mcu does not output a program select enable signal, this port can be used as a generic input. this port is connected to the plds. reset 48 i resets i/o ports, pld macrocells and some of the configuration registers. must be low at power-up.
pin description psd8xxfx 16/128 doc id 7833 rev 7 pa 0 pa 1 pa 2 pa 3 pa 4 pa 5 pa 6 pa 7 29 28 27 25 24 23 22 21 i/o these pins make up port a. these port pins are configurable and can have the following functions: mcu i/o ? write to or read from a standard output or input port. cpld macrocell (mcellab0-7) outputs. inputs to the plds. latched address outputs (see ta bl e 7 ). address inputs. for example, pa0-3 could be used for a0-a3 when using an 80c51xa in burst mode. as the data bus inputs d0-d7 for non-multiplexed address/data bus mcus. d0/a16-d3/a19 in m37702m2 mode. peripheral i/o mode. note: pa0-pa3 can only output cmos signals with an option for high slew rate. however, pa4-pa7 can be configured as cmos or open drain outputs. pb0 pb1 pb2 pb3 pb4 pb5 pb6 pb7 7 6 5 4 3 2 52 51 i/o these pins make up port b. these port pins are configurable and can have the following functions: mcu i/o ? write to or read from a standard output or input port. cpld macrocell (mcellab0-7 or mcellbc0-7) outputs. inputs to the plds. latched address outputs (see ta bl e 7 ). note: pb0-pb3 can only output cmos signals with an option for high slew rate. however, pb4-pb7 can be configured as cmos or open drain outputs. pc0 20 i/o pc0 pin of port c. this port pin can be configured to have the following functions: mcu i/o ? write to or read from a standard output or input port. cpld macrocell (mcellbc0) output. input to the plds. tms input (2) for the jtag serial interface. this pin can be configured as a cmos or open drain output. pc1 19 i/o pc1 pin of port c. this port pin can be configured to have the following functions: mcu i/o ? write to or read from a standard output or input port. cpld macrocell (mcellbc1) output. input to the plds. tck input (2) for the jtag serial interface. this pin can be configured as a cmos or open drain output. pc2 18 i/o pc2 pin of port c. this port pin can be configured to have the following functions: mcu i/o ? write to or read from a standard output or input port. cpld macrocell (mcellbc2) output. input to the plds. this pin can be configured as a cmos or open drain output. table 3. plcc52 pin description (1) (continued) pin name pin type description
psd8xxfx pin description doc id 7833 rev 7 17/128 pc3 17 i/o pc3 pin of port c. this port pin can be configured to have the following functions: mcu i/o ? write to or read from a standard output or input port. cpld macrocell (mcellbc3) output. input to the plds. tstat output (2) for the jtag serial interface. ready/busy output for parallel in-system programming (isp). this pin can be configured as a cmos or open drain output. pc4 14 i/o pc4 pin of port c. this port pin can be configured to have the following functions: mcu i/o ? write to or read from a standard output or input port. cpld macrocell (mcellbc4) output. input to the plds. terr output (2) for the jtag serial interface. this pin can be configured as a cmos or open drain output. pc5 13 i/o pc5 pin of port c. this port pin can be configured to have the following functions: mcu i/o ? write to or read from a standard output or input port. cpld macrocell (mcellbc5) output. input to the plds. tdi input (2) for the jtag serial interface. this pin can be configured as a cmos or open drain output. pc6 12 i/o pc6 pin of port c. this port pin can be configured to have the following functions: mcu i/o ? write to or read from a standard output or input port. cpld macrocell (mcellbc6) output. input to the plds. tdo output (2) for the jtag serial interface. this pin can be configured as a cmos or open drain output. pc7 11 i/o pc7 pin of port c. this port pin can be configured to have the following functions: mcu i/o ? write to or read from a standard output or input port. cpld macrocell (mcellbc7) output. input to the plds. dbe ? active low data byte enable input from 68hc912 type mcus. this pin can be configured as a cmos or open drain output. pd0 10 i/o pd0 pin of port d. this port pin can be configured to have the following functions: ale/as input latches address output from the mcu. mcu i/o ? write or read from a standard output or input port. input to the plds. cpld output (external chip select). pd1 9 i/o pd1 pin of port d. this port pin can be configured to have the following functions: mcu i/o ? write to or read from a standard output or input port. input to the plds. cpld output (external chip select). clkin ? clock input to the cpld macrocells, the apd unit?s power-down counter, and the cpld and array. table 3. plcc52 pin description (1) (continued) pin name pin type description
pin description psd8xxfx 18/128 doc id 7833 rev 7 pd2 8 i/o pd2 pin of port d. this port pin can be configured to have the following functions: mcu i/o - write to or read from a standard output or input port. input to the plds. cpld output (external chip select). psd chip select input (csi ). when low, the mcu can access the psd memory and i/o. when high, the psd memory blocks are disabled to conserve power. v cc 15, 38 supply voltage gnd 1, 16, 26 ground pins 1. the pin numbers in this table are for the pl cc package only. see the package information from table 73 onwards, for pin numbers on other package types. 2. these functions can be multip lexed with other functions. table 3. plcc52 pin description (1) (continued) pin name pin type description
psd8xxfx pin description doc id 7833 rev 7 19/128 figure 4. psd block diagram prog. mcu bus intrf. adio port cntl0, cntl1, cntl2 ad0 ? ad15 clkin (pd1) clkin clkin pld input bus prog. port port a prog. port port b 1 or 2 mbit primary flash memory 8 sectors pa0 ? pa7 pb0 ? pb7 prog. port port c prog. port port d pc0 ? pc7 pd0 ? pd2 address/data/control bus port a ,b & c 3 ext cs to port d 24 input macrocells port a ,b & c 73 73 256 kbit secondary non-volatile memory (boot or data) 4 sectors 256 kbit sram runtime control and i/o registers sram select perip i/o mode selects macrocell feedback or port input csiop flash isp cpld (cpld) 16 output macrocells flash decode pld ( dpld ) pld, configuration & flash memory loader jtag serial channel page register embedded algorithm sector selects sector selects global config. & security ai02861f 8
psd architectural overview psd8xxfx 20/128 doc id 7833 rev 7 3 psd architectural overview psd devices contain several major functional blocks. figure 4 shows the architecture of the psd device family. the functions of each block are described briefly in the following sections. many of the blocks perform multiple functions and are user configurable. 3.1 memory each of the memory blocks is briefly discussed in the following paragraphs. a more detailed discussion can be found in section 6.1: memory blocks . the 1 mbit or 2 mbit (128k x 8, or 256k x 8) flash memory is the primary memory of the psd. it is divided into 8 equally-sized sectors that are individually selectable. the optional 256 kbit (32k x 8) secondary flash memory is divided into 4 equally-sized sectors. each sector is individually selectable. the optional sram is intended for use as a scratch-pad memory or as an extension to the mcu sram. each sector of memory can be located in a different address space as defined by the user. the access times for all memory types includes the address latching and dpld decoding time. 3.2 page register the 8-bit page register expands the address range of the mcu by up to 256 times. the paged address can be used as part of the address space to access external memory and peripherals, or internal memory and i/o. the page register can also be used to change the address mapping of sectors of the flash memories into different memory spaces for iap. 3.3 plds the device contains two plds, the decode pld (dpld) and the complex pld (cpld), as shown in ta b l e 4 , each optimized for a different function. the functional partitioning of the plds reduces power consumption, optimizes cost/performance, and eases design entry. the dpld is used to decode addresses and to generate sector select signals for the psd internal memory and registers. the dpld has combinatorial outputs. the cpld has 16 output macrocells (omc) and 3 combinatorial outputs. the psd also has 24 input macrocells (imc) that can be configured as inputs to the plds. the plds receive their inputs from the pld input bus and are differentiated by their output destinations, number of product terms, and macrocells. the plds consume minimal power. the speed and power consumption of the pld is controlled by the turbo bit in pmmr0 and other bits in the pmmr2. these registers are set by the mcu at run-time. there is a slight penalty to pld propagation time when invoking the power management features.
psd8xxfx psd architectural overview doc id 7833 rev 7 21/128 3.4 i/o ports the psd has 27 individually configurable i/o pins distributed over the four ports (port a, b, c, and d). each i/o pin can be individually co nfigured for different functions. ports can be configured as standard mcu i/o ports, pld i/o, or latched address outputs for mcus using multiplexed address/data buses. the jtag pins can be enabled on port c for in-system programming (isp). ports a and b can also be configured as a data port for a non-multiplexed bus. 3.5 mcu bus interface psd interfaces easily with most 8-bit mcus that have either multiplexed or non-multiplexed address/data buses. the device is configured to respond to the mcu control signals, which are also used as inputs to the plds. for examples, please see section 15.4: mcu bus interface examples . 3.6 jtag port in-system programming (isp) can be performed through the jtag signals on port c. this serial interface allows complete programming of the entire psd device. a blank device can be completely programmed. the jtag signals (tms, tck, tstat , terr , tdi, tdo) can be multiplexed with other functions on port c. ta bl e 5 indicates the jtag pin assignments. 3.7 in-system programming (isp) using the jtag signals on port c, the entire psd device can be programmed or erased without the use of the mcu. the primary flash memory can also be programmed in-system by the mcu executing the programming algorithms out of the secondary memory, or sram. the secondary memory can be programmed the same way by executing out of the primary flash memory. the pld or other psd configuration blocks can be programmed through the jtag port or a device programmer. ta b l e 6 indicates which programming methods can program different functional blocks of the psd. 3.8 power management unit (pmu) the power management unit (pmu) gives the user control of the power consumption on selected functional blocks based on system requirements. the pmu includes an automatic power-down (apd) unit that turns off device functions during mcu inactivity. the apd unit has a power-down mode that helps reduce power consumption. table 4. pld i/o name inputs outputs product terms decode pld (dpld) 73 17 42 complex pld (cpld) 73 19 140
psd architectural overview psd8xxfx 22/128 doc id 7833 rev 7 the psd also has some bits that are configured at run-time by the mcu to reduce power consumption of the cpld. the turbo bit in pmmr0 can be reset to '0' and the cpld latches its outputs and goes to sleep until the next transition on its inputs. additionally, bits in pmmr2 can be set by the mcu to block signals from entering the cpld to reduce power consumption. please see section 17: power management for more details. table 5. jtag signals on port c port c pins jtag signal pc0 tms pc1 tck pc3 tstat pc4 terr pc5 tdi pc6 tdo table 6. methods for programming different functional blocks of the psd functional block jtag programming device programmer iap primary flash memory yes yes yes secondary flash memory yes yes yes pld array (dpld and cpld) yes yes no psd configuration yes yes no
psd8xxfx development system doc id 7833 rev 7 23/128 4 development system the psd8xxfx family is supported by psdsoft express, a windows-based software development tool. a psd design is quickly and easily produced in a point and click environment. the designer does not need to enter hardware description language (hdl) equations, unless desired, to define psd pin functions and memory map information. the general design flow is shown in figure 5 . psdsoft express is available from our web site (the address is given on the back page of this data sheet) or other distribution channels. psdsoft express directly supports two low cost device programmers form st: psdpro and flashlink (jtag). both of these programmers may be purchased through your local distributor/representative, or directly from our web site using a credit card. the psd is also supported by third party device programmers. see our web site for the current list. figure 5. psdsoft express development tool psd configuration psd fitter psd simulator psd programmer *.obj file pld description configure mcu bus interface and other psd attributes logic synthesis and fitting psdsilos iii device simulation (optional) psdpro, or flashlink (jtag) address translation and memory mapping psdabel modify abel template file or generate new file psd tools generate c code specific to psd functions user's choice of microcontroller compiler/linker *.obj and *.svf files available for 3rd party programmers (conventional or jtag-isc) firmware hex or s-record format ai04918
psd register description and address offset psd8xxfx 24/128 doc id 7833 rev 7 5 psd register description and address offset ta bl e 7 shows the offset addresses to the psd registers relative to the csiop base address. the csiop space is the 256 bytes of ad dress that is allocated by the user to the internal psd registers. ta b l e 8 provides brief descriptions of the registers in csiop space. the following section gives a more detailed description. table 7. i/o port latched address output assignments (1)(2) 1. see section 16: i/o ports , on how to enable the latched address output function. 2. n/a = not applicable mcu port a port b port a (3:0) port a (7:4) port b (3:0) port b (7:4) 8051xa (8-bit) n/a address a7-a4 address a11-a8 n/a 80c251 (page mode) n/a n/a address a11-a8 address a15- a12 all other 8-bit multiplexed address a3-a0 address a7-a4 address a3-a0 address a7-a4 8-bit non-multiplexed bus n/a n/a address a3-a0 address a7-a4 table 8. register address offset register name port a port b port c port d other (1) description data in 00 01 10 11 reads port pin as input, mcu i/o input mode control 02 03 selects mode between mcu i/o or address out data out 04 05 12 13 stores data for output to port pins, mcu i/o output mode direction 06 07 14 15 configures port pin as input or output drive select 08 09 16 17 configures port pins as either cmos or open drain on some pins, while selecting high slew rate on other pins. input macrocell 0a 0b 18 reads input macrocells enable out 0c 0d 1a 1b reads the status of the output enable to the i/o port driver output macrocells ab 20 20 read ? reads output of macrocells ab write ? loads macrocell flip-flops output macrocells bc 21 21 read ? reads output of macrocells bc write ? loads macrocell flip-flops
psd8xxfx psd register description and address offset doc id 7833 rev 7 25/128 mask macrocells ab 22 22 blocks writing to the output macrocells ab mask macrocells bc 23 23 blocks writing to the output macrocells bc primary flash protection c0 read only ? primary flash sector protection secondary flash memory protection c2 read only ? psd security and secondary flash memory sector protection jtag enable c7 enables jtag port pmmr0 b0 power management register 0 pmmr2 b4 power management register 2 page e0 page register vm e2 places psd memory areas in program and/or data space on an individual basis. 1. other registers that are not part of the i/o ports. table 8. register address offset (continued) register name port a port b port c port d other (1) description
detailed operation psd8xxfx 26/128 doc id 7833 rev 7 6 detailed operation as shown in figure 4 , the psd consists of six major types of functional blocks: memory blocks pld blocks mcu bus interface i/o ports power management unit (pmu) jtag interface the functions of each block are described in the following sections. many of the blocks perform multiple functions, and are user configurable. 6.1 memory blocks the psd has the following memory blocks: primary flash memory optional secondary flash memory optional sram the memory select signals for these blocks originate from the decode pld (dpld) and are user-defined in psdsoft express. table 9. memory block size and organization sector number primary flash memory secondary flash memory sram sector size (kbytes) sector select signal sector size (kbytes) sector select signal sram size (kbytes) sram select signal 0 32 fs0 16 csboot0 256 rs0 1 32 fs1 16 csboot1 2 32 fs2 16 csboot2 3 32 fs3 16 csboot3 43 2f s 4 53 2f s 5 63 2f s 6 73 2f s 7 total 512 8 sectors 64 4 sectors 256
psd8xxfx detailed operation doc id 7833 rev 7 27/128 6.2 description of primary flash memory and secondary flash memory the primary flash memory is divided evenly in to eight equal sectors. the secondary flash memory is divided into four equal sectors. each sector of either memory block can be separately protected from program and erase cycles. flash memory may be erased on a sector-by-sector basis. flash sector erasure may be suspended while data is read from other sectors of the block and then resumed after reading. during a program or erase cycle in flash memory, the status can be output on ready/busy (pc3). this pin is set up using psdsoft express configuration. 6.3 memory block select signals the dpld generates the select signals for all the internal memory blocks (see section 14: plds ). each of the eight sectors of the primary flash memory has a select signal (fs0- fs7) which can contain up to three product terms. each of the four sectors of the secondary flash memory has a select signal (csboot0-csboot3) which can contain up to three product terms. having three product terms for each select signal allows a given sector to be mapped in different areas of system memory. when using a mcu with separate program and data space, these flexible select signals allow dynamic re-mapping of sectors from one memory space to the other. 6.3.1 ready/busy (pc3) this signal can be used to output the ready/busy status of the psd. the output on ready/busy (pc3) is a 0 (busy) when flash memory is being written to, or when flash memory is being erased. the output is a 1 (r eady) when no write or erase cycle is in progress. 6.3.2 memory operation the primary flash memory and secondary flash memory are addressed through the mcu bus interface. the mcu can access these memories in one of two ways: the mcu can execute a typical bus write or read operation just as it would if accessing a ram or rom device using standard bus cycles. the mcu can execute a specific instruction that consists of several write and read operations. this involves writing specific data patterns to special addresses within the flash memory to invoke an embedded algorithm. these instructions are summarized in ta bl e 1 0 . typically, the mcu can read flash memory using read operations, just as it would read a rom device. however, flash memory can only be altered using specific erase and program instructions. for example, the mcu cannot write a single byte directly to flash memory as it would write a byte to ram. to program a byte into flash memory, the mcu must execute a program instruction, then test the status of the program cycle. this status test is achieved by a read operation or polling ready/busy (pc3). flash memory can also be read by using specia l instructions to retrieve particular flash device information (sector protect status and id).
detailed operation psd8xxfx 28/128 doc id 7833 rev 7 table 10. instructions (1)(2)(3) instruction fs0-fs7 or csboot0- csboot3 (4) cycle 1 cycle 2 cycle 3 cycle 4 cycle 5 cycle 6 cycle 7 read (5) 1 ?read? rd @ ra read main flash id (6) 1 aah@ x555h 55h@ xaaah 90h@ x555h read identifier (a6,a1,a0 = 0,0,1) read sector protection (6)(7) (8) 1 aah@ x555h 55h@ xaaah 90h@ x555h read identifier (a6,a1,a0 = 0,1,0) program a flash byte (8) 1 aah@ x555h 55h@ xaaah a0h@ x555h pd@ pa flash sector erase (9)(8) 1 aah@ x555h 55h@ xaaah 80h@ x555h aah@ x555h 55h@ xaaah 30h@ sa 30h 7 @ next sa flash bulk erase (8) 1 aah@ x555h 55h@ xaaah 80h@ x555h aah@ x555h 55h@ xaaah 10h@ x555h suspend sector erase (10) 1 b0h@ xxxxh resume sector erase (11) 1 30h@ xxxxh reset (6) 1 f0h@ xxxxh unlock bypass 1 aah@ x555h 55h@ xaaah 20h@ x555h unlock bypass program (12) 1 a0h@ xxxxh pd@ pa unlock bypass reset (13) 1 90h@ xxxxh 00h@ xxxxh 1. all bus cycles are write bus cycles, except the ones with the ?read? label 2. all values are in hexadecimal: x = don?t care. addresses of the form xxxxh, in this table, must be even addresses ra = address of the memory location to be read rd = data read from location ra during the read cycle pa = address of the memory location to be programmed. addresses are latched on the falling edge of write strobe (wr , cntl0). pa is an even address fo r psd in word programming mode. pd = data word to be programmed at location pa. data is latched on the rising edge of write strobe (wr , cntl0) sa = address of the sector to be erased or verified. the sector select (fs0-fs7 or csboot0-csboot3) of the sector to be erased, or verified, must be active (high). 3. only address bits a1 1-a0 are used in instruction decoding. 4. sector select (fs0 to fs7 or csbo ot0 to csboot3) signals are active high, and are defined in psdsoft express. 5. no unlock or instruction cycles are required when the device is in the read mode 6. the reset instruction is required to return to the read mode after reading the flash id, or after reading the sector protection status, or if the er ror flag bit (dq5/dq13) goes high. 7. the data is 00h for an unprotected sector, and 01h for a protected sector. in the fourth cycle, the sector select is active, and (a1,a0)=(1,0)
psd8xxfx detailed operation doc id 7833 rev 7 29/128 8. the mcu cannot invoke these instructions while executing code from the same flash memory as that for which the instruction is intended. the mcu must fetch, for example, the code from the secondary flash memory when reading the sector protection status of the primary flash memory. 9. additional sectors to be erased must be written at the end of the sector erase instruction within 80 s. 10. the system may perform read and program cycles in non-erasing sector s, read the flash id or r ead the sector protection status when in the suspend sector erase mode. the suspend sect or erase instruction is vali d only during a sector erase cycle. 11. the resume sector erase instruction is valid only during the suspend sector erase mode. 12. the unlock bypass instruction is required prior to the unlock bypass program instruction. 13. the unlock bypass reset flash instruction is required to retu rn to reading memory data when the device is in the unlock bypass mode.
instructions psd8xxfx 30/128 doc id 7833 rev 7 7 instructions an instruction consists of a sequence of sp ecific operations. each received byte is sequentially decoded by the psd and not executed as a standard write operation. the instruction is executed when the correct number of bytes are properly received and the time between two consecutive bytes is shorter than the timeout period. some instructions are structured to include read operations after the initial write operations. the instruction must be followed exactly. any invalid combination of instruction bytes or timeout between two consecutive bytes while addressing flash memory resets the device logic into read mode (flash me mory is read like a rom device). the psd supports the inst ructions summarized in ta b l e 1 0 : flash memory: erase memory by chip or sector suspend or resume sector erase program a byte reset to read mode read primary flash identifier value read sector protection status bypass (on the psd833f2, psd834f2, psd853f2 and psd854f2) these instructions are detailed in ta bl e 1 0 . for efficient decoding of the instructions, the first two bytes of an instruction are the coded cycles and are followed by an instruction byte or confirmation byte. the coded cycles consist of writing the data aah to address x555h during the first cycle and da ta 55h to address xaaah during the second cycle. address signals a15-a12 are don?t care during the instruction write cycles. however, the appropriate sector select (fs0-fs7 or csboot0-csboot3) must be selected. the primary and secondary flash memories have the same instruction set (except for read primary flash identifier). the sector select signals determine which flash memory is to receive and execute the instruction. the primary flash memory is selected if any one of sector select (fs0-fs7) is high, and the secondary flash memory is selected if any one of sector select (csboot0-csboot3) is high. 7.1 power-up mode the psd internal logic is reset upon power-up to the read mode. sector select (fs0-fs7 and csboot0-csboot3) must be held low, and write strobe (wr , cntl0) high, during power-up for maximum security of the data contents and to remove the possibility of a byte being written on the first edge of write strobe (wr , cntl0). any write cycle initiation is locked when v cc is below v lko . 7.2 read under typical conditions, the mcu may read the primary flash memory or the secondary flash memory using read operations just as it would a rom or ram device. alternately, the mcu may use read operations to obtain status information about a program or erase
psd8xxfx instructions doc id 7833 rev 7 31/128 cycle that is currently in progress. lastly, the mcu may use instructions to read special data from these memory blocks. the following sections describe these read functions. 7.3 read memory contents primary flash memory and secondary flash memory are placed in the read mode after power-up, chip reset, or a re set flash instruction (see ta bl e 1 0 ). the mcu can read the memory contents of the primary flash memory or the secondary flash memory by using read operations any time the read operation is not part of an instruction. 7.4 read primary flash identifier the primary flash memory identifier is read with an instruction composed of 4 operations: 3 specific write operations and a read operation (see ta b l e 1 0 ). during the read operation, address bits a6, a1, and a0 must be '0,0,1,' respectively, and the appropriate sector select (fs0-fs7) must be high. the identifier for the psd813f2/3/4/5 is e4h, and for the psd83xf2 or psd85xf2 it is e7h. 7.5 read memory sector protection status the primary flash memory sector protection status is read with an instruction composed of 4 operations: 3 specific write oper ations and a read operation (see ta b l e 1 0 ). during the read operation, address bits a6, a1, and a0 must be '0,1,0,' respectively, while sector select (fs0-fs7 or csboot0-csboot3) designates the flash memory sector whose protection has to be verified. the read operation produces 01h if the flash memory sector is protected, or 00h if the sector is not protected. the sector protection status for all nvm blocks (primary flash memory or secondary flash memory) can also be read by the mcu accessing the flash protection registers in psd i/o space. see section 10.1: flash memory sector protect for register definitions. 7.6 reading the erase/program status bits the psd provides several status bits to be used by the mcu to confirm the completion of an erase or program cycle of flash memory. these status bits minimize the time that the mcu spends performing these tasks and are defined in ta bl e 1 1 . the status bits can be read as many times as needed. for flash memory, the mcu can perform a read operation to obtain these status bits while an erase or program instruction is being executed by the embedded algorithm. see section 8: programming flash memory for details.
instructions psd8xxfx 32/128 doc id 7833 rev 7 7.7 data polling flag (dq7) when erasing or programming in flash memory , the data polling flag bit (dq7) outputs the complement of the bit being entered for programming/writing on the dq7 bit. once the program instruction or the write operation is completed, the true logic value is read on the data polling flag bit (dq7, in a read operation). data polling is effective after the fourth writ e pulse (for a program instruction) or after the sixth write pulse (for an erase instruction). it must be performed at the address being programmed or at an address within the flash memory sector being erased. during an erase cycle, the data polling flag bi t (dq7) outputs a ?0.? after completion of the cycle, the data polling flag bit (dq7) output s the last bit programm ed (it is a '1' after erasing). if the byte to be programmed is in a protected flash memory sector, the instruction is ignored. if all the flash memory sect ors to be erased are protec ted, the data polling flag bit (dq7) is reset to '0' for about 100s, and then returns to the previous addressed byte. no erasure is performed. 7.8 toggle flag (dq6) the psd offers another way for determining when the flash memory program cycle is completed. during the internal write operation and when either the fs0-fs7 or csboot0-csboot3 is true, the toggle flag bit (dq6) toggles from '0' to '1' and '1' to '0' on subsequent attempts to read any byte of the memory. when the internal cycle is complete, the toggling stops and the data read on the data bus d0-d7 is the addressed memory byte. the devi ce is now accessible for a new read or write operation. the cycle is finished when two successive reads yield the same output data. the toggle flag bit (dq6) is effective after the fourth write pulse (for a program instruction) or after the sixth write pulse (for an erase instruction). if the byte to be programmed belongs to a protected flash memory sector, the instruction is ignored. if all the flash memory sectors selected for erasure are protected, the toggle flag bit (dq6) toggles to '0' for about 100s and then returns to the previous addressed byte. table 11. status bits (1)(2)(3) functional block fs0- fs7/csboot0- csboot3 dq7 dq6 dq5 dq4 dq3 dq2 dq1 dq0 flash memory v ih data polling toggle flag error flag x erase timeout xxx 1. x = not guaranteed value, can be read either '1' or ?0.? 2. dq7-dq0 represent the data bus bits, d7-d0. 3. fs0-fs7 and csboot0-csboot3 are active high.
psd8xxfx instructions doc id 7833 rev 7 33/128 7.9 error flag (dq5) during a normal program or erase cycle, the error flag bit (dq5) is to ?0.? this bit is set to '1' when there is a failure during flash memory byte program, sector erase, or bulk erase cycle. in the case of flash memory programming, the error flag bit (dq5) indicates the attempt to program a flash memory bit from the programmed state, ?0,? to the erased state, '1,' which is not valid. the error flag bit (dq5) may also indicate a timeout condition while attempting to program a byte. in case of an error in a flash memory sector erase or byte program cycle, the flash memory sector in which the error occurred or to which the programmed byte belongs must no longer be used. other flash memory sectors may still be used. the error flag bit (dq5) is reset after a reset flash instruction. 7.10 erase timeout flag (dq3) the erase timeout flag bit (dq3) reflects the timeout period allowed between two consecutive sector erase instructions. the erase timeout flag bit (dq3) is reset to '0' after a sector erase cycle for a time period of 100s + 20% unless an additional sector erase instruction is decoded. after this time period, or when the additional sector erase instruction is decoded, the erase timeout flag bit (dq3) is set to '1.'
programming flash memory psd8xxfx 34/128 doc id 7833 rev 7 8 programming flash memory flash memory must be erased prior to being programmed. a byte of flash memory is erased to all 1s (ffh), and is programmed by setting selected bits to ?0.? the mcu may erase flash memory all at once or by-sector, but not byte-by-byte. however, the mcu may program flash memory byte-by-byte. the primary and secondary flash memories require the mcu to send an instruction to program a byte or to erase sectors (see ta bl e 1 0 ). once the mcu issues a flash memory program or erase instruction, it must check for the status bits for completion. the embedded algorithms that are invoked inside the psd support several means to provide status to the mcu. status may be checked using any of three methods: data polling, data toggle, or ready/busy (pc3). 8.1 data polling polling on the data polling flag bit (dq7) is a method of checking whether a pr ogram or erase cycle is in progress or has completed. figure 6 shows the data polling algorithm. when the mcu issues a program instruction, the embedded algorithm within the psd begins. the mcu then reads the location of the byte to be programmed in flash memory to check status. the data polling flag bit (dq7) of this location becomes the complement of b7 of the original data byte to be programmed. the mcu continues to poll this location, comparing the data polling flag bi t (dq7) and monitoring the erro r flag bit (dq5). when the data polling flag bit (dq7) matches b7 of the original data, and the error flag bit (dq5) remains ?0,? the embedded algorithm is complete. if the error flag bit (dq5) is '1,' the mcu should test the data polling fl ag bit (dq7) again since the data polling flag bit (dq7) may have changed simultaneously with the error flag bit (dq5, see figure 6 ). the error flag bit (dq5) is set if either an internal timeout occurred while the embedded algorithm attempted to program the byte or if the mcu attempted to program a '1' to a bit that was not erased (not erased is logic '0'). it is suggested (as with all flash memories) to read the location again after the embedded programming algorithm has completed, to compare the byte that was written to the flash memory with the byte that was intended to be written. when using the data polling me thod during an erase cycle, figure 6 still applies. however, the data polling flag bit (dq7) is '0' until the er ase cycle is complete. a 1 on the error flag bit (dq5) indicates a timeout condition on the erase cycle; a 0 indicates no error. the mcu can read any location within the se ctor being erased to get the data polling flag bit (dq7) and the error flag bit (dq5). psdsoft express generates ansi c code fu nctions which implement these data polling algorithms.
psd8xxfx programming flash memory doc id 7833 rev 7 35/128 figure 6. data polling flowchart 8.2 data toggle checking the toggle flag bit (dq6) is a method of determining whether a program or erase cycle is in progress or has completed. figure 7 shows the data toggle algorithm. when the mcu issues a program instruction, the embedded algorithm within the psd begins. the mcu then reads the location of the byte to be programmed in flash memory to check status. the toggle flag bit (dq6) of this location toggles each time the mcu reads this location until the embedded algorithm is complete. the mcu continues to read this location, checking the toggle flag bit (dq6) and monitoring the error flag bit (dq5). when the toggle flag bit (dq6) stops toggling (two consecutive reads yield the same value), and the error flag bit (dq5) remains ?0,? the embedded algorithm is complete. if the error flag bit (dq5) is '1,' the mcu should test the toggle flag bit (dq6) again, since the toggle flag bit (dq6) may have changed simultaneously with the error flag bit (dq5, see figure 7 ). the error flag bit (dq5) is set if either an internal timeout occurred while the embedded algorithm attempted to program the byte, or if the mcu attempted to program a '1' to a bit that was not erased (not erased is logic '0'). it is suggested (as with all flash memories) to read the location again after the embedded programming algorithm has completed, to compare the byte that was written to flash memory with the byte that was intended to be written. when using the data toggle method after an erase cycle, figure 7 still applies. the toggle flag bit (dq6) toggles until the erase cycle is complete. a '1' on the error flag bit (dq5) indicates a timeout condition on the erase cycle; a '0' indicates no error. the mcu can read read dq5 & dq7 at valid address start read dq7 fail pass ai01369b dq7 = data yes no yes no dq5 = 1 dq7 = data yes no
programming flash memory psd8xxfx 36/128 doc id 7833 rev 7 any location within the sector being erased to get the toggle flag bit (dq6) and the error flag bit (dq5). psdsoft express generates ansi c code functions which implement these data toggling algorithms. 8.3 unlock bypass (psd83 3f2x, psd834f2x, psd853f2x, psd854f2x) the unlock bypass instructions allow the system to program bytes to the flash memories faster than using the standard program instruction. the unlock bypass mode is entered by first initiating two unlock cycles. this is followed by a third write cycle containing the unlock bypass code, 20h (as shown in ta b l e 1 0 ). the flash memory then enters the unlock bypass mode. a two-cycle unlock bypass program instruction is all that is required to program in this mode. the first cycle in this instruction contains the unlock bypass program code, a0h. the second cycle contains the program address and data. additional data is programmed in the same manner. these instructions dispense with the initial two unlock cycles required in the standard program instruction, resulting in faster total flash memory programming. during the unlock bypass mode, only the unlock bypass program and unlock bypass reset flash instructions are valid. to exit the unlock bypass mode, the system must issue the two-cycle unlock bypass reset flash instruction. the first cycle must contain th e data 90h; the second cycle the data 00h. addresses are don?t care for both cycles. the flash memory then returns to read mode.
psd8xxfx programming flash memory doc id 7833 rev 7 37/128 figure 7. data toggle flowchart read dq5 & dq6 start read dq6 fail pass ai01370b dq6 = toggle no no yes yes dq5 = 1 no yes dq6 = toggle
erasing flash memory psd8xxfx 38/128 doc id 7833 rev 7 9 erasing flash memory 9.1 flash bulk erase the flash bulk erase instruction uses six write operations followed by a read operation of the status register, as described in ta bl e 1 0 . if any byte of the bulk erase instruction is wrong, the bulk erase instruction aborts and the device is reset to the read flash memory status. during a bulk erase, the memory status may be checked by reading the error flag bit (dq5), the toggle flag bit (dq6), and the data polling flag bi t (dq7), as detailed in section 8: programming flash memory . the error flag bit (dq5) returns a '1' if there has been an erase failure (maximum number of erase cycles have been executed). it is not necessary to program the memory with 00h because the psd automatically does this before erasing to 0ffh. during execution of the bulk erase instruction, the flash memory does not accept any instructions. 9.2 flash sector erase the sector erase instruction uses six write operations, as described in ta b l e 1 0 . additional flash sector erase codes and flash memory sector addresses can be written subsequently to erase other flash memory sectors in parallel, without further coded cycles, if the additional bytes are transmitted in a shorter time than the timeout period of about 100s. the input of a new sector erase code restarts the timeout period. the status of the internal timer can be monitored through the level of the erase timeout flag bit (dq3). if the erase timeout flag bit (dq3) is ?0,? the sector erase instruction has been received and the timeout period is counting. if the erase timeout flag bit (dq3) is '1,' the timeout period has expired and the psd is busy erasing the flash memory sector(s). before and during erase timeout, any instruction other than suspend sector erase and resume sector erase instructions abort the cycle that is currently in progress, and reset the device to read mode. it is not necessary to program the flash memory sector with 00h as the psd does this automatically before erasing (byte = ffh). during a sector erase, the memory status may be checked by reading the error flag bit (dq5), the toggle flag bit (dq6), and the data polling flag bit (d q7), as detailed in section 8: programming flash memory . during execution of the erase cycle, the flash memory accepts only reset and suspend sector erase instructions. erasure of one flash memory sector may be suspended, in order to read data from another flash memory sector, and then resumed. 9.3 suspend sector erase when a sector erase cycle is in progress, the suspend sector erase instruction can be used to suspend the cycle by writing 0b0h to any address when an appropriate sector select (fs0-fs7 or csboot0-csboot3) is high. (see ta b l e 1 0 ). this allows reading of data from another flash memory sector after the erase cycle has been suspended. suspend sector erase is accepted only during an erase cycle and defaults to read mode.
psd8xxfx erasing flash memory doc id 7833 rev 7 39/128 a suspend sector erase instruction executed during an erase timeout period, in addition to suspending the erase cycle, terminates the time out period. the toggle flag bit (dq6) stops toggling when the psd internal logic is suspended. the status of this bit must be monitored at an address within the flash memory sector being erased. the toggle flag bit (dq6) stops toggling between 0.1s and 15s after the suspend sector erase instruction has been executed. the psd is then automatically set to read mode. if an suspend sector erase instruction was executed, the following rules apply: attempting to read from a flash memory sector that was being erased outputs invalid data. reading from a flash sector that was not being erased is valid. the flash memory cannot be programmed, and only responds to resume sector erase and reset flash instructions (read is an operation and is allowed). if a reset flash instruction is received, data in the flash memory sector that was being erased is invalid. 9.4 resume sector erase if a suspend sector erase instruction was previously executed, the erase cycle may be resumed with this instruction. the resume sector erase instruction consists of writing 030h to any address while an appropriate sector select (fs0-fs7 or csboot0-csboot3) is high. (see ta bl e 1 0 .)
specific features psd8xxfx 40/128 doc id 7833 rev 7 10 specific features 10.1 flash memory sector protect each primary and secondary flash memory sector can be separately protected against program and erase cycles. sector protection provides additional data security because it disables all program or erase cycles. this mode can be activated through the jtag port or a device programmer. sector protection can be selected for each sector using the psdsoft express configuration program. this automatically protects selected sectors when the device is programmed through the jtag port or a device programmer. flash memory sectors can be unprotected to allow updating of their contents using the jtag port or a device programmer. the mcu can read (but cannot change) the sector protection bits. any attempt to program or erase a protected flash memory sector is ignored by the device. the verify operation results in a read of the protected data. this allows a guarantee of the retention of the protection status. the sector protection status can be read by the mcu through the flash memory protection and psd/ee protection registers (in the csiop block). see ta b l e 1 2 and ta bl e 1 3 . 10.2 reset flash the reset flash instruction consists of one write cycle (see ta b l e 1 0 ). it can also be optionally preceded by the standard two write decoding cycles (writing aah to 555h and 55h to aaah). it must be executed after: reading the flash protection status or flash id an error condition has occurred (and the device has set the error flag bit (dq5) to '1') during a flash memory program or erase cycle. on the psd813f2/3/4/5, the reset flash instruction puts the flash memory back into normal read mode. it may take the flash memo ry up to a few millisec onds to complete the reset cycle. the reset flash instruction is ignored when it is issued during a program or bulk erase cycle of the flash memory. the reset flash instruction aborts any on-going sector erase cycle, and returns the flash memory to the normal read mode within a few milliseconds. on the psd83xf2 or psd85xf2, the reset flash instruction puts the flash memory back into normal read mode. if an error condition has occurred (and the device has set the error flag bit (dq5) to '1') the flash memory is put back into normal read mode within 25 s of the reset flash instruction having been issued. the reset flash instruction is ignored when it is issued during a program or bulk erase cycle of the flash memory. the reset flash instruction aborts any on-going sector er ase cycle, and returns the flash memory to the normal read mode within 25 s.
psd8xxfx specific features doc id 7833 rev 7 41/128 10.3 reset (reset ) signal (on the psd83xf2 and psd85xf2) a pulse on reset (reset ) aborts any cycle that is in progress, and resets the flash memory to the read mode. when the reset occurs during a program or erase cycle, the flash memory takes up to 25 s to return to the read mode. it is recommended that the reset (reset ) pulse (except for power on reset, as described in section 18: reset timing and device status at reset ) be at least 25 s so that the flash memory is always ready for the mcu to fetch the bootstrap instructions after the reset cycle is complete. table 12. sector protection/security bi t definition ? flash protection register (1) 1. bit definitions: sec_prot 1 = primary flash memory or secondary flash memory sector is write protected. sec_prot 0 = primary flash memory or secondary flash memory sector is not write protected. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 sec7_prot sec6_prot sec5_prot sec4_prot sec3_prot sec2_prot sec1_prot sec0_prot table 13. sector protection/security bi t definition ? psd/ee protection register (1) 1. bit definitions: sec_prot 1 = secondary flash memory sect or is write protected. sec_prot 0 = secondary flash memory sector is not write protected. security_bit 0 = security bit in device has not been set. 1 = security bit in device has been set. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 security_b it not used not used not used sec3_prot sec2_prot sec1_prot sec0_prot
sram psd8xxfx 42/128 doc id 7833 rev 7 11 sram the sram is enabled when sram select (r s0) from the dpld is high. sram select (rs0) can contain up to two product terms, allowing flexible memory mapping. sram select (rs0) is configured using psdsoft express configuration.
psd8xxfx sector select and sram select doc id 7833 rev 7 43/128 12 sector select and sram select sector select (fs0-fs7, csboot0-csboot3) and sram select (rs0) are all outputs of the dpld. they are setup by writing equations for them in psdabel. the following rules apply to the equations for these signals: 1. primary flash memory and secondary flash memory sector select signals must not be larger than the physical sector size. 2. any primary flash memory sector must not be mapped in the same memory space as another flash memory sector. 3. a secondary flash memory sector must not be mapped in the same memory space as another secondary flash memory sector. 4. sram, i/o, and peripheral i/o spaces must not overlap. 5. a secondary flash memory sector may overlap a primary flash memory sector. in case of overlap, priority is given to the secondary flash memory sector. 6. sram, i/o, and peripheral i/o spaces may overlap any other memory sector. priority is given to the sram, i/o, or peripheral i/o. 12.1 example fs0 is valid when the address is in the range of 8000h to bfffh, csboot0 is valid from 8000h to 9fffh, and rs0 is valid from 8000h to 87ffh. any address in the range of rs0 always accesses the sram. any address in the range of csboot0 greater than 87ffh (and less than 9fffh) automatically addresses secondary flash memory segment 0. any address greater than 9fffh accesses the primary flash memory segment 0. you can see that half of the primary flash memory segment 0 and one-fourth of secondary flash memory segment 0 cannot be accessed in this example. also note that an equation that defined fs1 to anywhere in the range of 8000h to bfffh would not be valid. figure 8 shows the priority levels for all memory components. any component on a higher level can overlap and has priority over any component on a lower level. components on the same level must not overlap. level one has the highest priority and level 3 has the lowest. 12.2 memory select configurat ion for mcus with separate program and data spaces the 8031 and compatible family of mcus, wh ich includes the 80c51, 80c151, 80c251, and 80c51xa, have separate address spaces for program memory (selected using program select enable (psen , cntl2)) and data memory (selected using read strobe (rd , cntl1)). any of the memories within the psd can reside in either space or both spaces. this is controlled through manipulation of the vm register that resides in the csiop space. the vm register is set using psdsoft express to have an initial value. it can subsequently be changed by the mcu so that memory mapping can be changed on-the-fly. for example, you may wish to have sram and primary flash memory in the data space at boot-up, and secondary flash memory in the program space at boot-up, and later swap the primary and secondary flash memories. this is easily done with the vm register by using
sector select and sram select psd8xxfx 44/128 doc id 7833 rev 7 psdsoft express configuration to configure it for boot-up and having the mcu change it when desired. ta b l e 1 4 describes the vm register. figure 8. priority level of memory and i/o components 12.3 configuration modes for mc us with separate program and data spaces 12.3.1 separate space modes program space is separated fr om data space. for example, program select enable (psen , cntl2) is used to access the program code from the primary flash memory, while read strobe (rd , cntl1) is used to access data from the secondary flash memory, sram and i/o port blocks. this configuration requires the vm register to be set to 0ch (see figure 9 ). 12.3.2 combined space modes the program and data spaces are combined into one memory space that allows the primary flash memory, secondary flash memory, and sram to be accessed by either program select enable (psen , cntl2) or read strobe (rd , cntl1). for example, to configure the primary flash memory in combined space, bits b2 and b4 of the vm register are set to '1' (see figure 10 ). figure 9. 8031 memory modules ? separate space level 1 sram, i /o, or peripheral i /o level 2 secondary non-volatile memory highest priority lowest priority level 3 primary flash memory ai02867d primary flash memory dpld secondary flash memory sram rs0 csboot0-3 fs0-fs7 cs cs cs oe oe rd psen oe ai02869c
psd8xxfx sector select and sram select doc id 7833 rev 7 45/128 figure 10. 8031 memory modules ? combined space primary flash memory dpld secondary flash memory sram rs0 csboot0-3 fs0-fs7 rd cs cs cs rd oe oe vm reg bit 2 psen vm reg bit 0 vm reg bit 1 vm reg bit 3 vm reg bit 4 oe ai02870c table 14. vm register bit 7 pio_en bit 6 bit 5 bit 4 primary fl_data bit 3 econdary ee_data bit 2 primary fl_code bit 1 secondary ee_code bit 0 sram_code 0 = disable pio mode not used not used 0 = rd cannot access flash memory 0 = rd can?t access secondary flash memory 0 = psen cannot access flash memory 0 = psen can?t access secondary flash memory 0 = psen cannot access sram 1= enable pio mode not used not used 1 = rd access flash memory 1 = rd access secondary flash memory 1 = psen access flash memory 1 = psen access secondary flash memory 1 = psen access sram
page register psd8xxfx 46/128 doc id 7833 rev 7 13 page register the 8-bit page register increases the addressing capability of the mcu by a factor of up to 256. the contents of the register can also be read by the mcu. the outputs of the page register (pgr0-pgr7) are inputs to the dpld decoder and can be included in the sector select (fs0-fs7, csboot0-csboot3), and sram select (rs0) equations. if memory paging is not needed, or if not all 8 page register bits are needed for memory paging, then these bits may be used in the cpld for general logic. see application note an1154 . figure 11 shows the page register. the eight flip-flops in the register are connected to the internal data bus d0-d7. the mcu can write to or read from the page register. the page register can be accessed at address location csiop + e0h. figure 11. page register reset d0-d7 r/w d0 q0 q1 q2 q3 q4 q5 q6 q7 d1 d2 d3 d4 d5 d6 d7 page register pgr0 pgr1 pgr2 pgr3 dpld and cpld internal selects and logic pld pgr4 pgr5 pgr6 pgr7 ai02871b
psd8xxfx plds doc id 7833 rev 7 47/128 14 plds the plds bring programmable logic functionality to the psd. after specifying the logic for the plds using the psdabel tool in psdsoft express, the logic is programmed into the device and available upon power-up. the psd contains two plds: the decode pl d (dpld), and the complex pld (cpld). the plds are briefly discussed in the next few paragraphs, and in more detail in section 14.2: decode pld (dpld) , and section 14.3: complex pld (cpld) . figure 12 shows the configuration of the plds. the dpld performs address decoding for select signals for internal components, such as memory, registers, and i/o ports. the cpld can be used for logic functions, such as loadable counters and shift registers, state machines, and encoding and decoding logic. these logic functions can be constructed using the 16 output macrocells (omc), 24 input macrocells (imc), and the and array. the cpld can also be used to generate external chip select (ecs0-ecs2) signals. the and array is used to form product terms. these product terms are specified using psdabel. an input bus consisting of 73 signals is connected to the plds. the signals are shown in ta b l e 1 5 . 14.1 the turbo bit in psd the plds in the psd can minimize power consumption by switching off when inputs remain unchanged for an extended time of about 70ns. resetting the turbo bit to '0' (bit 3 of pmmr0) automatically places the plds into standby if no inputs are changing. turning the turbo mode off increases propagation delays while reducing power consumption. see section 17: power management on how to set the turbo bit. additionally, five bits are available in pmmr2 to block mcu control signals from entering the plds. this reduces power consumption and can be used only when these mcu control signals are not used in pld logic equations. each of the two plds has unique characteristics suited for its applications. they are described in the following sections. table 15. dpld and cpld inputs input source input name number of signals mcu address bus (1) a15-a0 16 mcu control signals cntl2-cntl0 3 reset rst 1 power-down pdn 1 port a input macrocells pa7-pa0 8 port b input macrocells pb7-pb0 8 port c input macrocells pc7-pc0 8 port d inputs pd2-pd0 3
plds psd8xxfx 48/128 doc id 7833 rev 7 page register pgr7-pgr0 8 macrocell ab feedback mcellab.fb7-fb0 8 macrocell bc feedback mcellbc.fb7-fb0 8 secondary flash memory program status bit ready/busy 1 1. the address inputs are a19-a4 in 80c51xa mode. table 15. dpld and cpld inputs (continued) input source input name number of signals
psd8xxfx plds doc id 7833 rev 7 49/128 figure 12. pld diagram pld input bus 8 input macrocell & input ports direct macrocell input to mcu data bus csiop select sram select secondary non-volatile memory selects decode pld page register peripheral selects jtag select cpld pt alloc. macrocell alloc. mcellab mcellbc direct macrocell access from mcu data bus 24 input macrocell (port a,b,c) 16 output macrocell i/o ports primary flash memory selects 3 port d inputs to port a or b to port b or c data bus 8 8 8 4 1 1 2 1 external chip selects to port d 3 73 16 73 24 output macrocell feedback ai02872c
plds psd8xxfx 50/128 doc id 7833 rev 7 14.2 decode pld (dpld) the dpld, shown in figure 13 , is used for decoding the address for internal and external components. the dpld can be used to generate the following decode signals: 8 sector select (fs0-fs7) signals for the primary flash memory (three product terms each) 4 sector select (csboot0-csboot3) signals for the secondary flash memory (three product terms each) 1 internal sram select (rs0 ) signal (two product terms) 1 internal csiop select (psd configuration register) signal 1 jtag select signal (enables jtag on port c) 2 internal peripheral select signals (peripheral i/o mode). figure 13. dpld logic array (inputs) (24) (8) (16) (1) pdn (apd output) i /o ports (port a,b,c) (8) pgr0 - pgr7 (8) mcellab.fb [7:0] (feedbacks) mcellbc.fb [7:0] (feedbacks) a [ 15:0 ] * (3) (3) pd [ 2:0 ] (ale,clkin,csi) cntrl [ 2:0 ] ( read/write control signals) (1) (1) reset rd_bsy rs0 csiop psel0 psel1 8 primary flash memory sector selects sram select i/o decoder select peripheral i/o mode select csboot 0 csboot 1 csboot 2 csboot 3 fs0 fs7 3 3 3 3 3 3 3 3 3 3 3 3 2 jtagsel ai02873d fs1 fs2 fs3 fs6 fs5 fs4 1 1 1 1
psd8xxfx plds doc id 7833 rev 7 51/128 14.3 complex pld (cpld) the cpld can be used to implement system logic functions, such as loadable counters and shift registers, system mailboxes, handshaking protocols, state machines, and random logic. the cpld can also be used to generate three external chip select (ecs0-ecs2), routed to port d. although external chip select (ecs0-ecs2) can be produced by any output macrocell (omc), these three external chip select (ecs0-ecs2) on port d do not consume any output macrocells (omc). as shown in figure 12 , the cpld has the following blocks: 24 input macrocells (imc) 16 output macrocells (omc) macrocell allocator product term allocator and array capable of generating up to 137 product terms four i/o ports. each of the blocks are described in the sections that follow. the input macrocells (imc) and output ma crocells (omc) are connected to the psd internal data bus and can be directly accessed by the mcu. this enables the mcu software to load data into the output macrocells (omc) or read data from both the input and output macrocells (imc and omc). this feature allows efficient implementation of system logic and eliminates the need to connect the data bus to the and array as required in most standard pld macrocell architectures.
plds psd8xxfx 52/128 doc id 7833 rev 7 figure 14. macrocell and i/o port i/o ports cpld macrocells input macrocells latched address out mux mux mux mux mux d d q q q g d qd wr wr pdr data product term allocator dir reg. select input product terms from other macrocells polarity select up to 10 product terms clock select pr di ld d/t ck cl q d/t/jk ff select pt clear pt clock global clock pt output enable ( oe ) macrocell feedback i/o port input ale/as pt input latch gate/clock mcu load pt preset mcu data in comb. /reg select macrocell to i/o port alloc. cpld output to other i/o ports pld input bus pld input bus mcu address / data bus macrocell out to mcu data load control and array cpld output i/o pin ai02874
psd8xxfx plds doc id 7833 rev 7 53/128 14.4 output macrocell (omc) eight of the output macrocells (omc) are connected to ports a and b pins and are named as mcellab0-mcellab7. the other eight macrocells are connected to ports b and c pins and are named as mcellbc0-mcellbc7. if an mcellab output is not assigned to a specific pin in psdabel, the macrocell allocator block assigns it to either port a or b. the same is true for a mcellbc output on port b or c. ta b l e 1 6 shows the macrocells and port assignment. the output macrocell (omc) architecture is shown in figure 15 . as shown in the figure, there are native product terms available from the and array, and borrowed product terms available (if unused) from other output macrocells (omc). the polarity of the product term is controlled by the xor gate. the output macrocell (omc) can implement either sequential logic, using the flip-flop element, or combinatorial logic. the multiplexer selects between the sequential or combinatorial logic outputs. the multiplexer output can drive a port pin and has a feedback path to the and array inputs. the flip-flop in the output macrocell (omc) block can be configured as a d, t, jk, or sr type in the psdabel program. the flip-flop?s clock, preset, and clear inputs may be driven from a product term of the and array. alternatively, clkin (pd1) can be used for the clock input to the flip-flop. the flip-flop is clocked on the rising edge of clkin (pd1). the preset and clear are active high inputs. each clear input can use up to two product terms. table 16. output macrocell port and data bit assignments output macrocell port assignment native product terms maximum borrowed product terms data bit for loading or reading mcellab0 port a0, b0 3 6 d0 mcellab1 port a1, b1 3 6 d1 mcellab2 port a2, b2 3 6 d2 mcellab3 port a3, b3 3 6 d3 mcellab4 port a4, b4 3 6 d4 mcellab5 port a5, b5 3 6 d5 mcellab6 port a6, b6 3 6 d6 mcellab7 port a7, b7 3 6 d7 mcellbc0 port b0, c0 4 5 d0 mcellbc1 port b1, c1 4 5 d1 mcellbc2 port b2, c2 4 5 d2 mcellbc3 port b3, c3 4 5 d3 mcellbc4 port b4, c4 4 6 d4 mcellbc5 port b5, c5 4 6 d5 mcellbc6 port b6, c6 4 6 d6 mcellbc7 port b7, c7 4 6 d7
plds psd8xxfx 54/128 doc id 7833 rev 7 14.5 product term allocator the cpld has a product term allocator. the psdabel compiler uses the product term allocator to borrow and place product terms from one macrocell to another. the following list summarizes how product terms are allocated: mcellab0-mcellab7 all have three native product terms and may borrow up to six more mcellbc0-mcellbc3 all have four native product terms and may borrow up to five more mcellbc4-mcellbc7 all have four native product terms and may borrow up to six more. each macrocell may only borrow product terms from certain other macrocells. product terms already in use by one macrocell are not available for another macrocell. if an equation requires more product terms than are available to it, then ?external? product terms are required, which consume other output macrocells (omc). if external product terms are used, extra delay is added for the equation that required the extra product terms. this is called product term expansion. psdsoft express performs this expansion as needed. 14.6 loading and reading the output macrocells (omc) the output macrocells (omc) block occupies a memory location in the mcu address space, as defined by the csiop block (see section 16: i/o ports ). the flip-flops in each of the 16 output macrocells (omc) can be loaded from the data bus by a mcu. loading the output macrocells (omc) with data from the mcu takes priority over internal functions. as such, the preset, clear, and clock inputs to the flip-flop can be overridden by the mcu. the ability to load the flip-flops and read them back is useful in such applications as loadable counters and shift registers, mailboxes, and handshaking protocols. data can be loaded to the output macrocells (omc) on the trailing edge of write strobe (wr , cntl0) (edge loading) or during the time that write strobe (wr , cntl0) is active (level loading). the method of loading is specified in psdsoft express configuration. 14.7 the omc mask register there is one mask register for each of the two groups of eight output macrocells (omc). the mask registers can be used to block the loading of data to individual output macrocells (omc). the default value for the mask registers is 00h, which allows loading of the output macrocells (omc). when a given bit in a mask register is set to a 1, the mcu is blocked from writing to the associated output macrocells (omc). for example, suppose mcellab0- mcellab3 are being used for a state machine. you would not want a mcu write to mcellab to overwrite the state machine registers. therefore, you would want to load the mask register for mcellab (mask macrocell ab) with the value 0fh. 14.8 the output enable of the omc the output macrocells (omc) block can be connected to an i/o port pin as a pld output. the output enable of each port pin driver is controlled by a single product term from the and array, ored with the direction register output. the pin is enabled upon power-up if no output enable equation is defined and if the pin is declared as a pld output in psdsoft express.
psd8xxfx plds doc id 7833 rev 7 55/128 if the output macrocell (omc) output is declar ed as an internal node and not as a port pin output in the psdabel file, the port pin can be used for other i/o functions. the internal node feedback can be routed as an input to the and array. figure 15. cpld output macrocell pt allocator mask reg. pt clk pt pt pt clkin feedback ( .fb ) port input and array pld input bus mux mux polarity select ld in clr q prdin comb/reg select port driver input macrocell i/o pin macrocell allocator internal data bus d [ 7:0 ] direction register clear ( .re ) programmable ff ( d / t/jk /sr ) wr enable ( .oe ) preset ( .pr ) rd macrocell cs ai02875b
plds psd8xxfx 56/128 doc id 7833 rev 7 14.9 input macrocells (imc) the cpld has 24 input macrocells (imc), one for each pin on ports a, b, and c. the architecture of the input macrocells (imc) is shown in figure 16 . the input macrocells (imc) are individually configurable, and can be used as a latch, register, or to pass incoming port signals prior to driving them onto the pld input bus. the outputs of the input macrocells (imc) can be read by the mcu through the internal data bus. the enable for the latch and clock for the register are driven by a multiplexer whose inputs are a product term from the cpld and array or the mcu address strobe (ale/as). each product term output is used to latch or clock four input macrocells (imc). port inputs 3-0 can be controlled by one product term and 7-4 by another. configurations for the input macrocells (imc) are specified by equations written in psdabel (see application note an1171 ). outputs of the input macrocells (imc) can be read by the mcu via the imc buffer (see section 16: i/o ports ). input macrocells (imc) can use address strobe (ale/as, pd0) to latch address bits higher than a15. any latched addresses are routed to the plds as inputs. input macrocells (imc) are particularly useful with handshaking communication applications where two processors pass data back and forth through a common mailbox. figure 17 shows a typical configuration where the master mcu writes to the port a data out register. this, in turn, can be read by the slave mcu via the activation of the ?slave-read? output enable product term. the slave can also write to the port a input macrocells (imc) and the master can then read the input macrocells (imc) directly. note that the ?slave-read? and ?slave-wr? signals are product terms that are derived from the slave mcu inputs read strobe (rd , cntl1), write strobe (wr , cntl0), and slave_cs.
psd8xxfx plds doc id 7833 rev 7 57/128 figure 16. input macrocell output macrocells bc and macrocell ab pt pt feedback and array pld input bus port driver i/o pin internal data bus d [ 7: 0 ] direction register mux mux ale/as pt q q d d g latch input macrocell enable ( .oe ) d ff input macrocell _ rd ai02876b
plds psd8xxfx 58/128 doc id 7833 rev 7 figure 17. handshaking communi cation using input macrocells master mcu mcu-rd mcu-rd mcu-wr slave ? wr slave ? cs mcu-wr d [ 7:0 ] d [ 7:0 ] cpld dq qd port a data out register port a input macrocell port a slave ? read slave mcu rd wr ai02877c psd
psd8xxfx mcu bus interface doc id 7833 rev 7 59/128 15 mcu bus interface the ?no-glue logic? mcu bus interface block can be directly connected to most popular mcus and their control signals. key 8-bit mcus, with their bus types and control signals, are shown in ta b l e 1 7 . the interface type is specified using the psdsoft express configuration. table 17. mcus and their control signals mcu data bus width cntl0 cntl1 cntl2 pc7 pd0 (1) adio0 pa3-pa0 pa7-pa3 8031 8 wr rd psen (2) ale a0 (2) (2) 80c51xa 8 wr rd psen (2) ale a4 a3-a0 (2) 80c251 8 wr psen (2) (2) ale a0 (2) (2) 80c251 8 wr rd psen (2) ale a0 (2) (2) 80198 8 wr rd (2) (2) ale a0 (2) (2) 68hc11 8 r/w e (2) (2) as a0 (2) (2) 68hc912 8 r/w e (2) dbe as a0 (2) (2) z80 8 wr rd (2) (2) (2) a0 d3-d0 d7-d4 z8 8 r/w ds (2) (2) as a0 (2) (2) 68330 8 r/w ds (2) (2) as a0 (2) (2) m37702m2 8 r/w e (2) (2) ale a0 d3-d0 d7-d4 1. ale/as input is optional for mcus with a non-multiplexed bus 2. unused cntl2 pin can be configured as cpld input. other unused pins (pc7, pd0, pa3-0) can be configured for other i/o functions.
mcu bus interface psd8xxfx 60/128 doc id 7833 rev 7 15.1 psd interface to a multiplexed 8-bit bus figure 18 shows an example of a system using a mcu with an 8-bit multiplexed bus and a psd. the adio port on the psd is connected directly to the mcu address/data bus. address strobe (ale/as, pd0) latches the address signals internally. latched addresses can be brought out to port a or b. the psd drives the adio data bus only when one of its internal resources is accessed and read strobe (rd , cntl1) is active. should the system address bus exceed sixteen bits, ports a, b, c, or d may be used as additional address inputs. figure 18. an example of a typical 8-bit multiplexed bus interface 15.2 psd interface to a non-multiplexed 8-bit bus figure 19 shows an example of a system using a mcu with an 8-bit non-multiplexed bus and a psd. the address bus is connected to the adio port, and the data bus is connected to port a. port a is in tri-state mode when the psd is not accessed by the mcu. should the system address bus exceed sixteen bits, ports b, c, or d may be used for additional address inputs. 15.3 data byte enable reference mcus have different data byte orientations. ta bl e 1 8 shows how the psd interprets byte/word operations in different bus write configurations. even-byte refers to locations with address a0 equal to '0' and odd byte as locations with a0 equal to ?1.? mcu wr rd bhe ale reset ad [ 7:0 ] a [ 15:8 ] a [ 15: 8 ] a [ 7: 0 ] adio port port a port b port c wr ( cntrl0 ) rd ( cntrl1 ) bhe ( cntrl2 ) rst ale ( pd0 ) port d ( optional ) ( optional ) psd ai02878c
psd8xxfx mcu bus interface doc id 7833 rev 7 61/128 15.4 mcu bus interface examples figure 20 , figure 21 , figure 22 , figure 23 , and figure 24 show examples of the basic connections between the psd and some popular mcus. the psd control input pins are labeled as to the mcu function for which they are configured. the mcu bus interface is specified using the psdsoft express configuration. figure 19. an example of a typical 8-bit non-multiplexed bus interface table 18. 8-bit data bus bhe a0 d7-d0 x 0 even byte x 1 odd byte mcu wr rd bhe ale reset d [ 7:0 ] a [ 15:0 ] a [ 23:16 ] d [ 7:0 ] adio port port a port b port c wr ( cntrl0 ) rd ( cntrl1 ) bhe ( cntrl2 ) rst ale ( pd0 ) port d (optional) psd ai02879c
mcu bus interface psd8xxfx 62/128 doc id 7833 rev 7 15.5 80c31 figure 20 shows the bus interface for the 80c3 1, which has an 8-bit multiplexed address/data bus. the lower address byte is multiplexed with the data bus. the mcu control signals program select enable (psen , cntl2), read strobe (rd , cntl1), and write strobe (wr , cntl0) may be used for accessing the internal memory and i/o ports blocks. address strobe (ale/as, pd0) latches the address. figure 20. interfacing the psd with an 80c31 ea/vp x1 x2 reset reset int0 int1 t0 t1 p1.0 p1.1 p1.2 p1.3 p1.4 p1.5 p1.6 p1.7 p0.0 p0.1 p0.2 p0.3 p0.4 p0.5 p0.6 p0.7 pa0 pa1 pa2 pa3 pa4 pa5 pa6 pa7 pb0 pb1 pb2 pb3 pb4 pb5 pb6 pb7 pc0 pc2 pc1 pc3 pc4 pc5 pc6 pc7 p2.0 p2.1 p2.2 p2.3 p2.4 p2.5 p2.6 p2.7 adio0 adio1 adio2 adio3 adio4 adio5 adio6 adio7 adio8 adio9 adio10 adio11 adio12 adio13 adio14 adio15 cntl0 (wr) cntl1(rd) cntl2 (psen) pd0-ale pd1 pd2 reset rd wr psen ale/p txd rxd reset 29 28 27 25 24 23 22 21 30 39 31 19 18 9 12 13 14 15 1 2 3 4 5 6 7 8 38 37 36 35 34 33 32 ad0 ad1 ad2 ad3 ad4 ad5 ad6 ad7 ad0 ad1 ad2 ad3 ad4 ad5 ad6 ad7 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 50 49 10 9 8 7 6 5 4 3 2 52 51 psd 80c31 ad7-ad0 ad [ 7:0 ] 21 22 23 24 25 26 27 28 17 16 29 30 a8 a9 a10 a11 a12 a13 a14 a15 rd wr psen ale 11 10 reset 20 19 18 17 14 13 12 11 ai02880c
psd8xxfx mcu bus interface doc id 7833 rev 7 63/128 15.6 80c251 the intel 80c251 mcu features a user-configurable bus interface with four possible bus configurations, as shown in ta b l e 1 9 . the first configuration is 80c31- compatible, and the bus interface to the psd is identical to that shown in figure 20 . the second and third configurations have the same bus connection as shown in figure 21 . there is only one read strobe (psen ) connected to cntl1 on the psd. the a16 connection to pa0 allows for a larger address input to the psd. the fourth configuration is shown in figure 22 . read strobe (rd ) is connected to cntl1 and program select enable (psen ) is connected to cntl2. the 80c251 has two major operating modes: page mode and non-page mode. in non- page mode, the data is multiplexed with the lower address byte, and address strobe (ale/as, pd0) is active in every bus cycle. in page mode, data (d7-d0) is multiplexed with address (a15-a8). in a bus cycle where there is a page hit, address strobe (ale/as, pd0) is not active and only addresses (a7-a0) are changing. the psd supports both modes. in page mode, the psd bus timing is identical to non-page mode except the address hold time and setup time with respect to address strobe (ale/as, pd0) is not required. the psd access time is measured from address (a7-a0) valid to data in valid. figure 21. interfacing the psd with the 80c251, with one read input 1. the a16 and a17 connections are optional. 2. in non-page-mode, ad7-ad0 connects to adio7-adio0. adio0 adio1 adio2 adio3 adio4 adio5 adio6 adio7 adio8 adio9 adio10 adio11 adio12 adio13 adio14 adio15 cntl0 ( wr ) cntl1 ( rd ) cntl 2(psen) pd0- ale pd1 pd2 reset 32 26 43 42 41 40 39 38 37 36 24 25 27 28 29 30 31 33 a0 a1 a2 a3 a4 a5 a6 a7 ad8 ad9 ad10 ad14 ad15 ad13 ad11 ad12 a0 a1 a2 a3 a4 a5 a6 a7 ad8 ad9 ad10 ad11 ad15 ale wr a16 rd ad14 ad12 ad13 14 9 2 3 4 5 6 7 8 21 20 11 13 p1.0 p1.1 p1.2 p1.3 p1.4 p1.5 p1.6 p1.7 p3.0/rxd p3.1/txd p3.2/int0 x2 x1 p3.3/int1 rst ea a16 1 p0.1 p0.0 p0.2 p0.3 p0.4 p0.5 p0.6 p0.7 p2.0 p2.1 p2.2 p2.3 p2.4 p2.5 p2.6 p2.7 ale psen wr rd/a16 pc0 pc1 pc3 pc4 pc5 pc6 pc7 19 18 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 8 9 10 49 50 47 29 28 27 25 24 23 22 21 20 19 18 17 14 13 12 11 pb0 pb1 pb2 pb3 pb4 pb5 pb6 pb7 pa0 pa1 pa2 pa3 pa4 pa5 pa6 pa7 7 6 5 4 3 2 52 51 80c251sb psd reset reset 35 p3.4/t0 p3.5/t1 16 15 17 10 reset pc2 ai02881c a17 1
mcu bus interface psd8xxfx 64/128 doc id 7833 rev 7 figure 22. interfacing the psd with the 80c251, with rd and psen inputs adio0 adio1 adio2 adio3 adio4 adio5 adio6 adio7 adio8 adio9 adio10 adio11 adio12 adio13 adio14 adio15 cntl0 ( wr ) cntl1 ( rd ) cntl 2(psen) pd0- ale pd1 pd2 reset 32 26 43 42 41 40 39 38 37 36 24 25 27 28 29 30 31 33 a0 a1 a2 a3 a4 a5 a6 a7 ad8 ad9 ad10 ad14 ad15 ad13 ad11 ad12 a0 a1 a2 a3 a4 a5 a6 a7 ad8 ad9 ad10 ad11 ad15 ale wr psen rd ad14 ad12 ad13 14 9 2 3 4 5 6 7 8 21 20 11 13 p1.0 p1.1 p1.2 p1.3 p1.4 p1.5 p1.6 p1.7 p3.0/rxd p3.1/txd p3.2/int0 x2 x1 p3.3/int1 rst ea p0.1 p0.0 p0.2 p0.3 p0.4 p0.5 p0.6 p0.7 p2.0 p2.1 p2.2 p2.3 p2.4 p2.5 p2.6 p2.7 ale psen wr rd/a16 pc0 pc1 pc3 pc4 pc5 pc6 pc7 19 18 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 8 9 10 49 50 47 29 28 27 25 24 23 22 21 20 19 18 17 14 13 12 11 pb0 pb1 pb2 pb3 pb4 pb5 pb6 pb7 pa0 pa1 pa2 pa3 pa4 pa5 pa6 pa7 7 6 5 4 3 2 52 51 80c251sb psd reset reset 35 p3.4/t0 p3.5/t1 16 15 17 10 reset pc2 ai02882c table 19. 80c251 configurations configuration 80c251 read/write pins connecting to psd pins page mode 1 wr rd psen cntl0 cntl1 cntl2 non-page mode, 80c31 compatible a7-a0 multiplex with d7-d0 2 wr psen only cntl0 cntl1 non-page mode a7-a0 multiplex with d7-d0 3 wr psen only cntl0 cntl1 page mode a15-a8 multiplex with d7-d0 4 wr rd psen cntl0 cntl1 cntl2 page mode a15-a8 multiplex with d7-d0
psd8xxfx mcu bus interface doc id 7833 rev 7 65/128 15.7 80c51xa the philips 80c51xa mcu family supports an 8- or 16-bit multiplexed bus that can have burst cycles. address bits (a3-a0) are not multiplexed, while (a19-a4) are multiplexed with data bits (d15-d0) in 16-bit mode. in 8-bit mode, (a11-a4) are multiplexed with data bits (d7-d0). the 80c51xa can be configured to operate in eight-bit data mode (as shown in figure 23 ). the 80c51xa improves bus throughput and performance by executing burst cycles for code fetches. in burst mode, address a19-a4 are latched internally by the psd, while the 80c51xa changes the a3-a0 signals to fetch up to 16 bytes of code. the psd access time is then measured from address a3-a0 valid to data in valid. the psd bus timing requirement in burst mode is identical to the normal bus cycle, except the address setup and hold time with respect to address strobe (ale/as, pd0) does not apply. figure 23. interfacing the psd with the 80c51x, 8-bit data bus adio0 adio1 adio2 adio3 ad104 ad105 adio6 adio7 adio8 adio9 adio10 adio11 ad1012 ad1013 adio14 adio15 cntl0 ( wr ) cntl1 ( rd ) cntl 2 (psen) pd0-ale pd1 pd2 reset 31 33 36 2 3 4 5 43 42 41 40 39 38 37 24 25 26 27 28 29 30 a4d0 a5d1 a6d2 a7d3 a8d4 a9d5 a10d6 a11d7 a12 a13 a14 a18 a19 a17 a15 a16 a0 a1 a2 a3 a4d0 a5d1 a6d2 a7d3 a8d4 a9d5 a10d6 a11d7 a12 a16 a17 a18 a19 a15 a13 a14 txd1 t2ex t2 t0 rst ea/wait busw a1 a0/wrh a2 a3 a4d0 a5d1 a6d2 a7d3 a8d4 a9d5 a10d6 a11d7 a12d8 a13d9 a14d10 a15d11 a16d12 a17d13 a18d14 a19d15 psen rd wrl pc0 pc1 pc3 pc4 pc5 pc6 pc7 ale psen rd wr ale 32 19 18 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 8 9 10 49 50 47 7 9 8 16 xtal1 xtal2 rxd0 txd0 rxd1 21 20 11 13 6 29 28 27 25 24 23 22 21 20 19 18 17 14 13 12 11 pb0 pb1 pb2 pb3 pb4 pb5 pb6 pb7 pa0 pa1 pa2 pa3 pa4 pa5 pa6 pa7 7 6 5 4 3 2 52 51 a0 a1 a2 a3 80c51xa psd reset reset 35 17 int0 int1 14 10 15 pc2 ai02883c
mcu bus interface psd8xxfx 66/128 doc id 7833 rev 7 15.8 68hc11 figure 24 shows a bus interface to a 68hc11 wh ere the psd is configured in 8-bit multiplexed mode with e and r/w settings. the dpld can be used to generate the read and wr signals for external devices. figure 24. interfacing the psd with a 68hc11 9 10 11 12 13 14 15 16 adio0 adio1 adio2 adio3 ad104 ad105 adio6 adio7 adio8 adio9 adio10 adio11 ad1012 ad1013 adio14 adio15 cntl0 (r _ w) cntl1(e) cntl 2 pd0 ? as pd1 pd2 reset 20 21 22 23 24 25 3 5 4 6 42 41 40 39 38 37 36 35 ad0 ad0 ad1 ad2 ad3 ad4 ad5 ad6 ad7 a8 a9 a10 a14 a15 a13 a11 a12 ad1 ad2 ad3 ad4 ad5 ad6 ad7 e as r/w xt ex reset irq xirq pa0 pa1 pa2 pe0 pe1 pe2 pe3 pe4 pe5 pe6 pe7 vrh vrl pa3 pa4 pa5 pa6 pa7 pb0 pb1 pb2 pb3 pb4 pb5 pb6 pb7 pa0 pa1 pa2 pa3 pa4 pa5 pa6 pa7 pc0 pc1 pc2 pc3 pc4 pc5 pc6 pc7 pc0 pc1 pc3 pc4 pc5 pc6 pc7 pd0 pd1 pd2 pd3 pd4 pd5 moda e as r/w 31 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 8 9 10 49 50 47 8 7 17 19 18 34 33 32 43 44 45 46 47 48 49 50 52 51 30 29 28 27 29 28 27 25 24 23 22 21 20 19 18 17 14 13 12 11 pb0 pb1 pb2 pb3 pb4 pb5 pb6 pb7 7 6 5 4 3 2 52 51 modb 2 68hc11 psd reset reset ad7-ad0 ad7-ad0 pc2 ai02884c
psd8xxfx i/o ports doc id 7833 rev 7 67/128 16 i/o ports there are four programmable i/o ports: ports a, b, c, and d. each of the ports is eight bits except port d, which is 3 bits. each port pin is individually user configurable, thus allowing multiple functions per port. the ports are configured using psdsoft express configuration or by the mcu writing to on-chi p registers in the csiop space. the topics discussed in this section are: general port architecture port operating modes port configuration registers (pcr) port data registers individual port functionality. 16.1 general port architecture the general architecture of the i/o port block is shown in figure 25 . individual port architectures are shown in figure 27 , figure 28 , figure 29 , and figure 30 . in general, once the purpose for a port pin has been defined, that pin is no longer available for other purposes. exceptions are noted. as shown in figure 25 , the ports contain an output multiplexer whose select signals are driven by the configuration bits in the control registers (ports a and b only) and psdsoft express configuration.inputs to the multiplexer include the following: output data from the data out register latched address outputs cpld macrocell output external chip select (ecs0-ecs2) from the cpld. the port data buffer (pdb) is a tri-state buffer that allows only one source at a time to be read. the port data buffer (pdb) is connected to the internal data bus for feedback and can be read by the mcu. the data out and macrocell outputs, direction and control registers, and port pin input are all connected to the port data buffer (pdb). the port pin?s tri-state output driver enable is controlled by a two input or gate whose inputs come from the cpld and array enable product term and the direction register. if the enable product term of any of the array outputs are not defined and that port pin is not defined as a cpld output in the psdabel file, then the direction register has sole control of the buffer that drives the port pin. the contents of these registers can be alte red by the mcu. the port data buffer (pdb) feedback path allows the mcu to check the contents of the registers. ports a, b, and c have embedded input macroc ells (imc). the input macrocells (imc) can be configured as latches, registers, or direct inputs to the plds. the latches and registers are clocked by address strobe (ale/as, pd0) or a product term from the pld and array. the outputs from the input macrocells (imc) drive the pld input bus and can be read by the mcu (see figure 16: input macrocell ).
i/o ports psd8xxfx 68/128 doc id 7833 rev 7 16.2 port operating modes the i/o ports have several modes of operation. some modes can be defined using psdabel, some by the mcu writing to the cont rol registers in csiop space, and some by both. the modes that can only be defined using psdsoft express must be programmed into the device and cannot be changed unless the device is reprogrammed. the modes that can be changed by the mcu can be done so dynamically at run-time. the pld i/o, data port, address input, and peripheral i/o modes are the only modes that must be defined before programming the device. all other modes can be changed by the mcu at run-time. see application note an1171 for more detail. ta bl e 2 0 summarizes which modes are available on each port. ta bl e 2 3 shows how and where the different modes are configured. each of the port operating modes are described in the following sections. figure 25. general i/o port architecture internal data bus data out reg. dq d g q dq dq wr wr wr address macrocell outputs enable product term ( .oe ) ext cs ale read mux p d b cpld - input control reg. dir reg. input macrocell enable out data in output select output mux port pin data out address ai02885
psd8xxfx i/o ports doc id 7833 rev 7 69/128 16.3 mcu i/o mode in the mcu i/o mode, the mcu uses the i/o ports block to expand its own i/o ports. by setting up the csiop space, the ports on the psd are mapped into the mcu address space. the addresses of the ports are listed in ta b l e 8 . a port pin can be put into mcu i/o mode by writing a 0 to the corresponding bit in the control register. the mcu i/o direction may be changed by writing to the corresponding bit in the direction register, or by the output enable product term (see section 16.8: peripheral i/o mode ). when the pin is configured as an output, the content of the data out register drives the pin. when configured as an input, the mcu can read the port input through the data in buffer (see figure 25 ). ports c and d do not have control registers, and are in mcu i/o mode by default. they can be used for pld i/o if equations are written for them in psdabel. 16.4 pld i/o mode the pld i/o mode uses a port as an input to the cpld?s input macrocells (imc), and/or as an output from the cpld?s output macrocells (omc). the output can be tri-stated with a control signal. this output enable control signal can be defined by a product term from the pld, or by resetting the corresponding bit in the direction register to ?0.? the corresponding bit in the direction register must not be set to '1' if the pin is defined for a pld input signal in psdabel. the pld i/o mode is specified in psdabel by declaring the port pins, and then writing an equation assigning the pld i/o to a port. 16.5 address out mode for mcus with a multiplexed address/data bus, address out mode can be used to drive latched addresses on to the port pins. these port pins can, in turn, drive external devices. either the output enable or the corresponding bits of both the direction register and control register must be set to a 1 for pins to use address out mode. this must be done by the mcu at run-time. see ta b l e 2 2 for the address output pin assignments on ports a and b for various mcus. for non-multiplexed 8-bit bus mode, address signals (a7-a0) are available to port b in address out mode. note: do not drive address signals with address out mode to an external memory device if it is intended for the mcu to boot from the external device. the mcu must first boot from psd memory so the direction and control register bits can be set. table 20. port operating modes port mode port a port b port c port d m c u i / o ye s ye s ye s ye s pld i/o mcellab outputs mcellbc outputs additional ext. cs outputs pld inputs ye s no no ye s ye s ye s no ye s no ye s no ye s no no ye s ye s
i/o ports psd8xxfx 70/128 doc id 7833 rev 7 address out yes (a7 ? 0) yes (a7 ? 0) or (a15 ? 8) no no address in yes yes yes yes data port yes (d7 ? 0) no no no peripheral i/o yes no no no jtag isp no no yes (1) no 1. can be multiplexed with other i/o functions. table 20. port operating modes (continued) port mode port a port b port c port d table 21. port operating mode settings mode defined in psdabel defined in psd configuration control register setting direction register setting vm register setting jtag enable mcu i/o declare pins only n/a (1) 0 1 = output, 0 = input (2) n/a n/a pld i/o logic equations n/a n/a (2) n/a n/a data port (port a) n/a specify bus type n/a n/a n/a n/a address out (port a,b) declare pins only n/a 1 1 (2) n/a n/a address in (port a,b,c,d) logic for equation input macrocells n/a n/a n/a n/a n/a peripheral i/o (port a) logic equations (psel0 & 1) n/a n/a n/a pio bit = 1 n/a jtag isp (3) jtagsel jtag configuration n/a n/a n/a jtag_enable 1. n/a = not applicable 2. the direction of the port a,b,c, and d pins are controlled by the direction register ored with the individual output enable product term (.oe) from the cpld and array. 3. any of these three methods enables the jtag pins on port c. table 22. i/o port latched address output assignments mcu port a (pa3-pa0) port a (pa7-pa4) port b (pb3-pb0) port b (pb7-pb4) 8051xa (8-bit) n/a (1) address a7-a4 address a11-a8 n/a 80c251 (page mode) n/a n/a address a11-a8 address a15-a12 all other 8-bit multiplexed address a3-a0 address a7-a4 address a3-a0 address a7-a4 8-bit non-multiplexed bus n/a n/a address a3-a0 address a7-a4 1. n/a = not applicable
psd8xxfx i/o ports doc id 7833 rev 7 71/128 16.6 address in mode for mcus that have more than 16 address signals, the higher addresses can be connected to port a, b, c, and d. the address input can be latched in the input macrocell (imc) by address strobe (ale/as, pd0). any input that is included in the dpld equations for the sram, or primary or secondary flash memory is considered to be an address input. 16.7 data port mode port a can be used as a data bus port for a mcu with a non-multiplexed address/data bus. the data port is connected to the data bus of the mcu. the general i/o functions are disabled in port a if the port is configured as a data port. 16.8 peripheral i/o mode peripheral i/o mode can be used to interface with external peripherals. in this mode, all of port a serves as a tri-state, bi-directional data buffer for the mcu. peripheral i/o mode is enabled by setting bit 7 of the vm register to a ?1.? figure 26 shows how port a acts as a bi- directional buffer for the mcu data bus if peripheral i/o mode is enabled. an equation for psel0 and/or psel1 must be written in psdabel . the buffer is tri-stated when psel0 or psel1 is not active. figure 26. peripheral i/o mode 16.9 jtag in-system programming (isp) port c is jtag compliant, and can be used for in-system programming (isp). you can multiplex jtag operations with other functions on port c because in-system programming (isp) is not performed in normal operating mode. for more information on the jtag port, see section 19: programming in-circuit using the jtag serial interface . rd psel0 psel1 psel vm register bit 7 wr pa0 - pa7 d0-d7 data bus ai02886
i/o ports psd8xxfx 72/128 doc id 7833 rev 7 16.10 port configuration registers (pcr) each port has a set of port configuration registers (pcr) used for configuration. the contents of the registers can be accessed by the mcu through normal read/write bus cycles at the addresses given in ta b l e 8 . the addresses in ta bl e 8 are the offsets in hexadecimal from the base of the csiop register. the pins of a port are individually configurable and each bit in the register controls its respective pin. for example, bit 0 in a register refers to bit 0 of its port. the three port configuration registers (pcr), shown in ta bl e 2 3 , are used for setting the port configurations. the default power-up state for each register in ta bl e 2 3 is 00h. 16.11 control register any bit reset to '0' in the control register sets the corresponding port pin to mcu i/o mode, and a '1' sets it to address out mode. the default mode is mcu i/o. only ports a and b have an associated control register. 16.12 direction register the direction register, in conjunction with the output enable (except for port d), controls the direction of data flow in the i/o ports. any bit set to '1' in the direction register causes the corresponding pin to be an output, and any bit set to '0' causes it to be an input. the default mode for all port pins is input. figure 27 and figure 28 show the port architecture diagrams for ports a/b and c, respectively. the direction of data flow for ports a, b, and c are controlled not only by the direction register, but also by the output enable product term from the pld and array. if the output enable product term is not active, the direction register has sole control of a given pin?s direction. an example of a configuration for a port with the three least significant bits set to output and the remainder set to input is shown in ta b l e 2 6 . since port d only contains three pins (shown in figure 30 ), the direction register for port d has only the three least significant bits active. 16.13 drive select register the drive select register configures the pin driver as open drain or cmos for some port pins, and controls the slew rate for the other port pins. an external pull-up resistor should be used for pins configured as open drain. a pin can be configured as open drain if its corresponding bit in the drive select register is set to a ?1.? the default pin drive is cmos. note that the slew rate is a measurement of the rise and fall times of an output. a higher slew rate means a faster output response and may create more electrical noise. a pin operates in a high slew rate when the corresponding bit in the drive register is set to ?1.? the default rate is slow slew. ta bl e 2 7 shows the drive register for ports a, b, c, and d. it summarizes which pins can be configured as open drain outputs and which pins the slew rate can be set for.
psd8xxfx i/o ports doc id 7833 rev 7 73/128 table 23. port configuration registers (pcr)t register name port mcu access control a,b write/read direction a,b,c,d write/read drive select (1) 1. see table 27 for drive register bit definition. a,b,c,d write/read table 24. port pin direction control, output enable p.t. not defined direction register bit port pin mode 0 input 1 output table 25. port pin direction control, output enable p.t. defined direction register bit output enable p.t. port pin mode 0 0 input 0 1 output 1 0 output 1 1 output table 26. port direction assignment example bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0 0 0 0 0 1 1 1 table 27. drive register pin assignment drive register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 port a open drain open drain open drain open drain slew rate slew rate slew rate slew rate port b open drain open drain open drain open drain slew rate slew rate slew rate slew rate port c open drain open drain open drain open drain open drain open drain open drain open drain port d na (1) 1. na = not applicable. na (1) na (1) na (1) na (1) slew rate slew rate slew rate
i/o ports psd8xxfx 74/128 doc id 7833 rev 7 16.14 port data registers the port data registers, shown in ta bl e 2 8 , are used by the mcu to write data to or read data from the ports. ta b l e 2 8 shows the register name, the ports having each register type, and mcu access for each register type. the registers are described below. 16.15 data in port pins are connected directly to the data in buffer. in mcu i/o input mode, the pin input is read through the data in buffer. 16.16 data out register stores output data written by the mcu in the mcu i/o output mode. the contents of the register are driven out to the pins if the direction register or the output enable product term is set to ?1.? the contents of the register can also be read back by the mcu. output macrocells (omc) the cpld output macrocells (omc) occupy a location in the mcu?s address space. the mcu can read the output of the output macrocells (omc). if the omc mask register bits are not set, writing to the macrocell loads data to the macrocell flip-flops (see section 14: plds ). 16.17 omc mask register each omc mask register bit corresponds to an output macrocell (omc) flip-flop. when the omc mask register bit is set to a 1, loading data into the output macroc ell (omc) flip-flop is blocked. the default value is 0 or unblocked. 16.18 input macro (imc) the input macrocells (imc) can be used to latch or store external inputs. the outputs of the input macrocells (imc) are routed to the pld input bus, and can be read by the mcu (see section 14: plds ). table 28. port data registers register name port mcu access data in a,b,c,d read ? input on pin data out a,b,c,d write/read output macrocell a,b,c read ? outputs of macrocells write ? loading macrocells flip-flop mask macrocell a,b,c write/read ? prevents loading into a given macrocell input macrocell a,b,c read ? outputs of the input macrocells enable out a,b,c read ? the output enable control of the port driver
psd8xxfx i/o ports doc id 7833 rev 7 75/128 16.19 enable out the enable out register can be read by the mcu. it contains the output enable values for a given port. a 1 indicates the driver is in output mode. a 0 indicates the driver is in tri-state and the pin is in input mode. 16.20 ports a and b ? func tionality and structure ports a and b have similar functionality and structure, as shown in figure 27 . the two ports can be configured to perform one or more of the following functions: mcu i/o mode cpld output ? macrocells mc ellab7-mcellab0 can be connected to port a or port b. mcellbc7-mcellbc0 can be connected to port b or port c. cpld input ? via the input macrocells (imc). latched address output ? provide latched address output as per ta bl e 2 2 . address in ? additional high address i nputs using the input macrocells (imc). open drain/slew rate ? pins pa3-pa0 and pb3-pb0 can be configured to fast slew rate, pins pa7-pa4 and pb7-pb4 can be configured to open drain mode. data port ? port a to d7-d0 for 8 bit non-multiplexed bus multiplexed address/data port for certain types of mcu bus interfaces. peripheral mode ? port a only figure 27. port a and port b structure internal data bus data out reg. dq d g q dq dq wr wr wr address macrocell outputs enable product term ( .oe ) ale read mux p d b cpld - input control reg. dir reg. input macrocell enable out data in output select output mux port a or b pin data out address a [ 7:0 ] or a [ 15:8 ] ai02887
i/o ports psd8xxfx 76/128 doc id 7833 rev 7 16.21 port c ? functionality and structure port c can be configured to perform one or more of the following functions (see figure 28 ): mcu i/o mode cpld output ? mcellbc7-mcellbc0 outputs can be connected to port b or port c. cpld input ? via the input macrocells (imc) address in ? additional high address i nputs using the input macrocells (imc). in-system programming (isp) ? jtag port ca n be enabled for pr ogramming/erase of the psd device (see section 19: programming in-circuit using the jtag serial interface for more information on jtag programming). open drain ? port c pins can be configured in open drain mode port c does not support address out mode, and therefore no control register is required. pin pc7 may be configured as the dbe input in certain mcu bus interfaces. figure 28. port c structure 16.22 port d ? functionality and structure port d has three i/o pins. see figure 29 and figure 30 . this port does not support address out mode, and therefore no control register is required. port d can be configured to perform one or more of the following functions: mcu i/o mode cpld output ? external chip select (ecs0-ecs2) cpld input ? direct input to the cpld, no input macrocells (imc) slew rate ? pins can be set up for fast slew rate internal data bus data out reg. dq dq wr wr mcellbc [ 7:0 ] enable product term ( .oe ) read mux p d b cpld - input dir reg. input macrocell enable out special function special function 1 configuration bit data in output select output mux port c pin data out ai02888b
psd8xxfx i/o ports doc id 7833 rev 7 77/128 port d pins can be configured in psdsoft express as input pins for other dedicated functions: address strobe (ale/as, pd0) clkin (pd1) as input to the macrocells flip-flops and apd counter psd chip select input (csi , pd2). driving this signal high disables the flash memory, sram and csiop. figure 29. port d structure 16.23 external chip select the cpld also provides three external chip select (ecs0-ecs2) outputs on port d pins that can be used to select external devices. each extern al chip select (ecs0-ecs2) consists of one product term that can be configured active high or low. the output enable of the pin is controlled by either the output enable product term or the direction register (see figure 30 ). internal data bus data out reg. dq dq wr wr ecs [ 2: 0 ] read mux p d b cpld - input dir reg. data in enable product term (.oe) output select output mux port d pin data out ai02889
i/o ports psd8xxfx 78/128 doc id 7833 rev 7 figure 30. port d external chip select signals pld input bus polarity bit pd2 pin pt2 ecs2 direction register polarity bit pd1 pin pt1 ecs1 enable (.oe) enable (.oe) direction register polarity bit pd0 pin pt0 ecs0 enable (.oe) direction register cpld and array ai02890
psd8xxfx power management doc id 7833 rev 7 79/128 17 power management all psd devices offer configurable power saving options. these options may be used individually or in combinations, as follows: all memory blocks in a psd (primary and secondary flash memory, and sram) are built with power managem ent technology. in addition to using special silicon design methodology, power management technology puts the memories into standby mode when address/data inputs are not changing (zero dc current). as soon as a transition occurs on an input, the affected memory ?wakes up?, changes and latches its outputs, then goes back to standby. the designer does not have to do anything special to achieve memory standby mode when no inputs are changing?it happens automatically. the pld sections can also achieve standby mode when its inputs are not changing, as described in the sections on the power management mode registers (pmmr). as with the power management mode, the automatic power down (apd) block allows the psd to reduce to standby current automatically. the apd unit can also block mcu address/data signals from reaching the memories and plds. this feature is available on all the devices of the psd family. the apd unit is described in more detail in section 17.1: automatic power-down (apd) unit and power-down mode . built in logic monitors the address strobe of the mcu for activity. if there is no activity for a certain time period (mcu is asleep), the apd unit initiates power-down mode (if enabled). once in power-down mode, all address/data signals are blocked from reaching psd memory and plds, and the memories are deselected internally. this allows the memory and plds to remain in standby mode even if the address/data signals are changing state externally (noise, other devices on the mcu bus, etc.). keep in mind that any unblocked pld input signals that are changing states keeps the pld out of standby mode, but not the memories. psd chip select input (csi , pd2) can be used to disable the internal memories, placing them in standby mode even if inputs are changing. this feature does not block any internal signals or disable the plds. this is a good alternative to using the apd unit. there is a slight penalty in memory access time when psd chip select input (csi , pd2) makes its initial transition from deselected to selected. the pmmrs can be written by the mcu at run-time to manage power. all psd supports ?blocking bits? in these registers that are set to block designated signals from reaching both plds. current consumption of the plds is directly related to the composite frequency of the changes on their inputs (see figure 34 and figure 35 ). significant power savings can be achieved by blocking signals that are not used in dpld or cpld logic equations. psd devices have a turbo bit in pmmr0. this bit can be set to turn the turbo mode off (the default is with turbo mode turned on). while turbo mode is off, the plds can achieve standby current when no pld inputs are changing (zero dc current). even when inputs do change, significant power can be saved at lower frequencies (ac current), compared to when turbo mode is on. when the turbo mode is on, there is a significant dc current component and the ac component is higher.
power management psd8xxfx 80/128 doc id 7833 rev 7 17.1 automatic power-down (apd) unit and power-down mode the apd unit, shown in figure 31 , puts the psd into power-down mode by monitoring the activity of address strobe (ale/as, pd0). if the apd unit is enabled, as soon as activity on address strobe (ale/as, pd0) stops, a four bit counter starts counting. if address strobe (ale/as, pd0) remains inactive for fifteen clock periods of clkin (pd1), power-down (pdn) goes high, and the psd enters power-down mode, as discussed next. power-down mode by default, if you enable the apd unit, power-down mode is automatically enabled. the device enters power-down mode if address strobe (ale/as, pd0) remains inactive for fifteen periods of clkin (pd1). the following should be kept in mind when the psd is in power-down mode: if address strobe (ale/as, pd0) starts pulsing again, the psd returns to normal operating mode. the psd also returns to normal operating mode if either psd chip select input (csi , pd2) is low or the reset (reset ) input is high. the mcu address/data bus is blocked from all memory and plds. various signals can be blocked (prior to power-down mode) from entering the plds by setting the appropriate bits in the pmmr registers. the blocked signals include mcu control signals and the common clkin (pd1). note that blocking clkin (pd1) from the plds does not block clkin (pd1) from the apd unit. all psd memories enter standby mode and are drawing standby current. however, the pld and i/o ports blocks do not go into standby mode because you don?t want to have to wait for the logic and i/o to ?wake up? before their outputs can change. see ta b l e 2 9 for power-down mode effects on psd ports. typical standby current is of the order of microamperes. these standby current values assume that there are no transitions on any pld input. table 29. power-down mode?s effect on ports port function pin level mcu i/o no change pld out no change address out undefined data port tri-state peripheral i/o tri-state
psd8xxfx power management doc id 7833 rev 7 81/128 figure 31. apd unit 17.2 for users of th e hc11 (or compatible) the hc11 turns off its e clock when it sleeps. therefore, if you are using an hc11 (or compatible) in your design, and you wish to use the power-down mode, you must not connect the e clock to clkin (pd1). you shou ld instead connect a crystal oscillator to clkin (pd1). the crystal o scillator frequency must be less than 15 times the frequency of as. the reason for this is that if the frequency is greater than 15 times the frequency of as, the psd keeps going into power-down mode. 17.3 other power saving options the psd offers other reduced power saving options that are independent of the power- down mode. except for psd chip select input (csi , pd2) features, they are enabled by setting bits in pmmr0 and pmmr2. apd en pmmr0 bit 1=1 ale reset csi clkin transition detection edge detect apd counter power down ( pdn ) disable bus interface eeprom select flash select sram select pd clr pd disable flash/eeprom/sram pld select ai02891 table 30. psd timing and standby current during power-down mode mode pld propagation delay memory access time access recovery time to normal access typical standby current 5v v cc 3v v cc power-down normal t pd (1) no access t lv dv 75 a (2) 25 a (2) 1. power-down does not affect the operation of the pld. the pld operation in this mode is based only on the turbo bit. 2. typical current consumption as suming no pld inputs are changing state and the pld turbo bit is ?0.?
power management psd8xxfx 82/128 doc id 7833 rev 7 figure 32. enable power-down flowchart 17.4 pld power management the power and speed of the plds are controlled by the turbo bit (bit 3) in pmmr0. by setting the bit to '1,' the turbo mode is off and the plds consume the specified standby current when the inputs are not switching for an extended time of 70ns. the propagation delay time is increased by 10ns after the turbo bit is set to '1' (turned off) when the inputs change at a composite frequency of less than 15 mhz. when the turbo bit is reset to '0' (turned on), the plds run at full power and speed. the turbo bit affects the pld?s dc power, ac power, and propagation delay. blocking mcu control signals with the bits of pmmr2 can further reduce pld ac power consumption. enable apd set pmmr0 bit 1 = 1 psd in power down mode ale/as idle for 15 clkin clocks? reset yes no optional disable desired inputs to pld by setting pmmr0 bits 4 and 5 and pmmr2 bits 2 through 6. ai02892 table 31. power management mode registers pmmr0 (1) bit name description bit 0 x 0 not used, and should be set to zero. bit 1 apd enable 0 = off automatic power-down (apd) is disabled. 1 = on automatic power-down (apd) is enabled. bit 2 x 0 not used, and should be set to zero. bit 3 pld turbo 0 = on pld turbo mode is on 1 = off pld turbo mode is off, saving power.
psd8xxfx power management doc id 7833 rev 7 83/128 bit 4 pld array clk 0 = on clkin (pd1) input to the pld and array is connected. every change of clkin (pd1) powers-up the pld when turbo bit is ?0.? 1 = off clkin (pd1) input to pld and array is disconnected, saving power. bit 5 pld mcell clk 0 = on clkin (pd1) input to the pld macrocells is connected. 1 = off clkin (pd1) input to pld macrocells is disconnected, saving power. bit 6 x 0 not used, and should be set to zero. bit 7 x 0 not used, and should be set to zero. 1. the bits of this register are cleared to zero following power-up. subsequent reset (reset ) pulses do not clear the registers. table 32. power management mode registers pmmr2 (1) bit name description bit 0 x 0 not used, and should be set to zero. bit 1 x 0 not used, and should be set to zero. bit 2 pld array cntl0 0 = on cntl0 input to the pld and array is connected. 1 = off cntl0 input to pld and array is disconnected, saving power. bit 3 pld array cntl1 0 = on cntl1 input to the pld and array is connected. 1 = off cntl1 input to pld and array is disconnected, saving power. bit 4 pld array cntl2 0 = on cntl2 input to the pld and array is connected. 1 = off cntl2 input to pld and array is disconnected, saving power. bit 5 pld array ale 0 = on ale input to the pld and array is connected. 1 = off ale input to pld and array is disconnected, saving power. bit 6 pld array dbe 0 = on dbe input to the pld and array is connected. 1 = off dbe input to pld and array is disconnected, saving power. bit 7 x 0 not used, and should be set to zero. 1. the bits of this register are cleared to zero following power-up. subsequent reset (reset ) pulses do not clear the registers. table 31. power management mode registers pmmr0 (1) (continued) bit name description
power management psd8xxfx 84/128 doc id 7833 rev 7 17.5 psd chip select input (csi , pd2) pd2 of port d can be configured in psdsoft express as psd chip select input (csi ). when low, the signal selects and enables the in ternal flash memory, eeprom, sram, and i/o blocks for read or write operations involving the psd. a high on psd chip select input (csi , pd2) disables the flash memory, eeprom , and sram, and reduces the psd power consumption. however, the pld and i/o signals remain operational when psd chip select input (csi , pd2) is high. there may be a timing penalty when using psd chip select input (csi , pd2) depending on the speed grade of the psd that you are using. see the timing parameter t slqv in ta b l e 6 2 or ta bl e 6 3 . 17.6 input clock the psd provides the option to turn off clkin (pd1) to the pld to save ac power consumption. clkin (pd1) is an input to th e pld and array and the output macrocells (omc). during power-down mode, or, if clkin (pd1) is not being used as part of the pld logic equation, the clock should be disabled to save ac power. clkin (pd1) is disconnected from the pld and array or the macrocells block by setting bits 4 or 5 to a 1 in pmmr0. 17.7 input control signals the psd provides the option to turn off th e input control signals (cntl0, cntl1, cntl2, address strobe (ale/as, pd0) and dbe) to the pld to save ac power consumption. these control signals are inputs to the pld and array. during power-down mode, or, if any of them are not being used as part of the pld logic equation, these control signals should be disabled to save ac power. they are disconnected from the pld and array by setting bits 2, 3, 4, 5, and 6 to a 1 in pmmr2. table 33. apd counter operation apd enable bit ale pd polarity ale level apd counter 0 x x not counting 1 x pulsing not counting 1 1 1 counting (generates pdn after 15 clocks) 1 0 0 counting (generates pdn after 15 clocks)
psd8xxfx reset timing and device status at reset doc id 7833 rev 7 85/128 18 reset timing and device status at reset 18.1 power-up reset upon power-up, the psd requires a reset (reset ) pulse of duration t nlnh-po after v cc is steady. during this period, the device loads internal configurations, clears some of the registers and sets the flash memory into operating mode. after the rising edge of reset (reset ), the psd remains in the reset mode for an additional period, t opr , before the first memory access is allowed. the flash memory is reset to the read mode upon power-up. sector select (fs0-fs7 and csboot0-csboot3) must all be low, write strobe (wr , cntl0) high, during power on reset for maximum security of the data cont ents and to remove the possibility of a byte being written on the first edge of write strobe (wr , cntl0). any flash memory write cycle initiation is prevent ed automatically when v cc is below v lko . 18.2 warm reset once the device is up and running, the device can be reset with a pulse of a much shorter duration, t nlnh . the same t opr period is needed before the device is operational after warm reset. figure 33 shows the timing of the power-up and warm reset. 18.3 i/o pin, register and pld status at reset ta bl e 3 4 shows the i/o pin, register and pld status during power on reset, warm reset and power-down mode. pld outputs are always valid during warm reset, and they are valid in power on reset once the internal psd configuration bits are loaded. this loading of psd is completed typically long before the v cc ramps up to operating level. once the pld is active, the state of the outputs are determined by the psdabel equations. 18.4 reset of flash memory erase and program cycles (on the psd834fx) a reset (reset ) also resets the internal flash memory state machine. during a flash memory program or erase cycle, reset (reset ) terminates the cycle and returns the flash memory to the read mode within a period of t nlnh-a .
reset timing and device status at reset psd8xxfx 86/128 doc id 7833 rev 7 figure 33. reset (reset ) timing t nlnh-po t opr ai02866b reset t nlnh t nlnh-a t opr v cc v cc (min) power-on reset warm reset table 34. status during power-on reset, warm reset and power-down mode port configuration power-on r eset warm reset power-down mode mcu i/o input mode input mode unchanged pld output valid after internal psd configuration bits are loaded valid depends on inputs to pld (addresses are blocked in pd mode) address out tri-stated tri-stated not defined data port tri-stated tri-stated tri-stated peripheral i/o tri-stated tri-stated tri-stated register power-on reset wa rm reset power-down mode pmmr0 and pmmr2 cleared to '0' unchanged unchanged macrocells flip-flop status cleared to '0' by internal power-on reset depends on .re and .pr equations depends on .re and .pr equations vm register (1) initialized, based on the selection in psdsoft configuration menu initialized, based on the selection in psdsoft configuration menu unchanged all other registers cleared to '0' cleared to '0' unchanged 1. the sr_cod and periphmode bits in the vm register are always cleared to '0' on power-on reset or warm reset.
psd8xxfx programming in-circuit using the jtag serial interface doc id 7833 rev 7 87/128 19 programming in-circuit using the jtag serial interface the jtag serial interface block can be enabled on port c (see ta bl e 3 5 ). all memory blocks (primary and secondary flash memory), pld logic, and psd configuration register bits may be programmed through the jtag serial interface block. a blank device can be mounted on a printed circuit board and programmed using jtag. the standard jtag signals (ieee 1149.1) are tms, tck, tdi, and tdo. two additional signals, tstat and terr , are optional jtag extensions used to speed up program and erase cycles. note: by default, on a blank psd (as shipped from the factory or after erasure), four pins on port c are enabled for the basic jtag signals tms, tck, tdi, and tdo. see application note an1153 for more details on jtag in-system programming (isp). 19.1 standard jtag signals the standard jtag signals (tms, tck, tdi, and tdo) can be enabled by any of three different conditions that are logically ored. when enabled, tdi, tdo, tck, and tms are inputs, waiting for a jtag serial command from an external jtag controller device (such as flashlink or automated test equipment). when the enabling command is received, tdo becomes an output and the jtag channel is fully functional inside the psd. the same command that enables the jtag channel may optionally enable the two additional jtag signals, tstat and terr . the following symbolic logic equation specifies the conditions enabling the four basic jtag signals (tms, tck, tdi, and tdo) on their respective port c pins. for purposes of discussion, the logic label jtag_on is used. when jtag_on is true, the four pins are enabled for jtag. when jtag_on is false, the four pins can be used for general psd i/o. jtag_on = psdsoft_enabled + /* an nvm configuration bit inside the psd is set by the designer in the psdsoft express configuration utility. this dedicates the pins for jtag at all times (compliant with ieee 1149.1 */ microcontroller_enabled + /* the microcontroller can set a bit at run-time by writing to the psd register, jtag enable. this register is located at address csiop + offset c7h. setting the jtag_enable bit in this register will enable the pins for jtag use. this bit is cleared by a psd reset or the microcontroller. see table 36 for bit definition. */ psd_product_term_enabled; /* a dedicated product term (pt) inside the psd can be used to enable the jtag pins. this pt has the reserved name jtagsel. once defined as a node in psdabel, the designer can write an equation for jtagsel. this method is used when the port c jtag pins are multiplexed with other i/o signals. it is recommended to logically tie the node jtagsel to the jen\ signal on the flashlink cable when multiplexing jtag signals. see application note 1153 for details. */ the state of the psd reset (reset ) signal does not interrupt (or prevent) jtag operations if the jtag pins are dedicated by an nvm configuration bit (via psdsoft express). however,
programming in-circuit using the jtag serial interface psd8xxfx 88/128 doc id 7833 rev 7 reset (reset ) will prevent or interrupt jtag operations if the jtag enable register is used to enable the jtag pins. the psd supports jtag in-system-configuration (isc) commands, but not boundary scan. the psdsoft express software tool and flashlink jtag programming cable implement the jtag in-system-configuration (isc) commands. a definition of these jtag in-system-configuration (isc) commands and sequences is defined in a supplemental document available from st. this document is needed only as a reference for designers who use a flashlink to program their psd. 19.2 jtag extensions tstat and terr are two jtag extension signals enabled by an ?isc_enable? command received over the four standard jtag signals (tms, tck, tdi, and tdo). they are used to speed program and erase cycles by indicating status on psd signals instead of having to scan the status out serially using the standard jtag channel. see application note an1153 . terr indicates if an error has occurred when erasing a sector or programming a byte in flash memory. this signal goes low (active) when an error condition occurs, and stays low until an ?isc_clear? command is executed or a chip reset (reset ) pulse is received after an ?isc_disable? command. tstat behaves the same as ready/busy described in section 6.3.1: ready/busy (pc3) . tstat is high when the psd device is in r ead mode (primary and secondary flash memory contents can be read). tstat is low when flash memory program or erase cycles are in progress, and also when data is being written to the secondary flash memory. tstat and terr can be configured as open-drain type signals during an ?isc_enable? command. this facilitates a wired-or connection of tstat signals from multiple psd devices and a wired-or connection of terr signals from those same devices. this is useful when several psd devices are ?chained? together in a jtag environment. 19.3 security and fl ash memory protection when the security bit is set, the device cannot be read on a device programmer or through the jtag port. when using the jtag port, only a full chip erase command is allowed. all other program, erase and verify commands are blocked. full chip erase returns the part to a non-secured blank state. the security bit can be set in psdsoft express configuration. all primary and secondary flash memory sectors can individually be sector protected against erasures. the sector protect bits can be set in psdsoft express configuration.
psd8xxfx programming in-circuit using the jtag serial interface doc id 7833 rev 7 89/128 table 35. jtag port signals port c pin jtag signals description pc0 tms mode select pc1 tck clock pc3 tstat status pc4 terr error flag pc5 tdi serial data in pc6 tdo serial data out
initial delivery state psd8xxfx 90/128 doc id 7833 rev 7 20 initial delivery state when delivered from st, the psd device has all bits in the memory and plds set to ?1.? the psd configuration register bits are set to ?0.? the code, configuration, and pld logic are loaded using the programming procedure. information for programming the device is available directly from st. please contact your local sales representative. table 36. jtag enable register (1) 1. the state of reset (reset ) does not interrupt (or prevent) jtag operations if t he jtag signals are dedicated by an nvm configuration bit (via psdsoft express). however, reset (reset ) prevents or interrupts jtag operations if the jtag enable register is used to enable the jtag signals. bit name description bit 0 jtag_enable 0 = off jtag port is disabled. 1 = on jtag port is enabled. bit 1 x 0 not used, and should be set to zero. bit 2 x 0 not used, and should be set to zero. bit 3 x 0 not used, and should be set to zero. bit 4 x 0 not used, and should be set to zero. bit 5 x 0 not used, and should be set to zero. bit 6 x 0 not used, and should be set to zero. bit 7 x 0 not used, and should be set to zero.
psd8xxfx maximum rating doc id 7833 rev 7 91/128 21 maximum rating stressing the device above the rating listed in the absolute maximum ratings? table may cause permanent damage to the device. these are stress ratings only and operation of the device at these or any other conditions above those indicated in the operating sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. refer also to the stmicroelectronics sure program and other relevant quality documents. table 37. absolute maximum ratings symbol parameter min. max. unit t stg storage temperature ?65 125 c t lead lead temperature during soldering (20 seconds max.) (1) 1. ipc/jedec j-std-020a 235 c v io input and output voltage (q = v oh or hi-z) ?0.6 7.0 v v cc supply voltage ?0.6 7.0 v v pp device programmer supply voltage ?0.6 14.0 v v esd electrostatic discharge voltage (human body model) (2) 2. jedec std jesd22-a114a (c1=100 pf, r1=1500 , r2=500 ) ?2000 2000 v
ac/dc parameters psd8xxfx 92/128 doc id 7833 rev 7 22 ac/dc parameters this section summarizes the operating and measurement conditions, and the dc and ac characteristics of the device: dc electrical specifications ac timing specifications ? pld timings combinatorial timings synchronous clock mode asynchronous clock mode input macrocell timings ? mcu timings read timings write timings peripheral mode timings power-down and reset timings the parameters in the dc and ac characteristic tables that follow are derived from tests performed under the measurement conditions summarized in the relevant tables. designers should check that the operating conditions in their circuit match the measurement conditions when relying on the quoted parameters. the following are issues concerning the parameters presented: in the dc specification the supply current is given for different modes of operation. before calculating the total power consumption, determine the percentage of time that the psd is in each mode. also, the supply power is considerably different if the turbo bit is ?0.? the ac power component gives the pld, flash memory, and sram ma/mhz specification. figure 34 and figure 35 show the pld ma/mhz as a function of the number of product terms (pt) used. in the pld timing parameters, add the required delay when turbo bit is ?0.?
psd8xxfx ac/dc parameters doc id 7833 rev 7 93/128 figure 34. pld i cc /frequency consumption (5 v range) figure 35. pld i cc /frequency consumption (3 v range) 0 10 20 30 40 60 70 80 90 100 110 v cc = 5v 50 01015 5 20 25 highest composite frequency at pld inputs (mhz) i cc ? (ma) turbo on (100%) turbo on (25%) turbo off turbo off pt 100% pt 25% ai02894 0 10 20 30 40 50 60 v cc = 3v 01015 5 20 25 i cc ? (ma) turbo on (100%) turbo on (25%) turbo off turbo off highest composite frequency at pld inputs (mhz) pt 100% pt 25% ai03100 table 38. example of psd typical power calculation at v cc =5.0 v (turbo mode on) (1) conditions highest composite pld input frequency (freq pld) = 8 mhz mcu ale frequency (freq ale) = 4 mhz % flash memory access = 80% % sram access = 15% % i/o access = 5% (no additional power above base) operational modes % normal = 10% % power-down mode = 90%
ac/dc parameters psd8xxfx 94/128 doc id 7833 rev 7 number of product terms used (from fitter report) = 45 pt % of total product terms = 45/182 = 24.7% turbo mode = on calculation (using typical values) i cc total = ipwrdown x %pwrdown + %normal x (i cc (ac) + i cc (dc)) = ipwrdown x %pwrdown + % normal x (%flash x 2.5 ma/mhz x freq ale + %sram x 1.5 ma/mhz x freq ale + % pld x 2 ma/mhz x freq pld + #pt x 400 a/pt) = 50 a x 0.90 + 0.1 x (0.8 x 2.5 ma/mhz x 4 mhz + 0.15 x 1.5 ma/mhz x 4 mhz + 2 ma/mhz x 8 mhz + 45 x 0.4 ma/pt) = 45 a + 0.1 x (8 + 0.9 + 16 + 18 ma) = 45 a + 0.1 x 42.9 = 45 a + 4.29 ma = 4.34 ma 1. this is the operating power with no eeprom write or flas h memory erase cycles in pr ogress. calculation is based on i out = 0 ma. table 38. example of psd typical power calculation at v cc =5.0 v (turbo mode on) (1) conditions table 39. example of psd typical power calculation at v cc = 5.0 v (turbo mode off) (1) conditions highest composite pld input frequency (freq pld) = 8 mhz mcu ale frequency (freq ale) = 4 mhz % flash memory access = 80% % sram access = 15% % i/o access = 5% (no additional power above base) operational modes % normal = 10% % power-down mode = 90% number of product terms used
psd8xxfx ac/dc parameters doc id 7833 rev 7 95/128 (from fitter report) = 45 pt % of total product terms = 45/182 = 24.7% turbo mode = off calculation (using typical values) i cc total = ipwrdown x %pwrdown + %normal x (i cc (ac) + i cc (dc)) = ipwrdown x %pwrdown + % normal x (%flash x 2.5ma/mhz x freq ale + %sram x 1.5ma/mhz x freq ale + % pld x (from graph using freq pld)) = 50 a x 0.90 + 0.1 x (0.8 x 2.5ma/mhz x 4 mhz + 0.15 x 1.5ma/mhz x 4 mhz + 24ma) = 45 a + 0.1 x (8 + 0.9 + 24) = 45 a + 0.1 x 32.9 = 45 a + 3.29ma = 3.34ma 1. this is the operating power with no eeprom write or flas h memory erase cycles in pr ogress. calculation is based on i out = 0 ma. table 39. example of psd typical power calculation at v cc = 5.0 v (turbo mode off) conditions table 40. operating conditions (5 v devices) symbol parameter min. max. unit v cc supply voltage 4.5 5.5 v t a ambient operating temperature (industrial) ?40 85 c ambient operating temperature (commercial) 0 70 c table 41. operating conditions (3 v devices) symbol parameter min. max. unit v cc supply voltage 3.0 3.6 v t a ambient operating temperature (industrial) ?40 85 c ambient operating temperature (commercial) 0 70 c
ac/dc parameters psd8xxfx 96/128 doc id 7833 rev 7 table 42. ac signal letters for pld timing (1) 1. example: t avlx = time from address valid to ale invalid. letter signal description a address input c ceout output d input data e e output g internal wdog_on signal i interrupt input la l e i n p u t n reset input or output p port signal output q output data rwr , uds , lds , ds , iord, psen inputs s chip select input tr/w input w internal pdn signal m output macrocell table 43. ac signal behavior symbols for pld timing (1) 1. example: t avlx = time from address valid to ale invalid. letter ac signal description tt i m e l logic level low or ale h logic level high vv a l i d x no longer a valid logic level (2) 2. output hi-z is defined as the point where data out is no longer driven. zf l o a t pw pulse width table 44. ac measurement conditions symbol parameter min. max. unit c l load capacitance 30 pf
psd8xxfx ac/dc parameters doc id 7833 rev 7 97/128 figure 36. ac measurement i/o waveform figure 37. ac measurement load circuit figure 38. switching waveforms ? key table 45. capacitance (1) 1. sampled only, not 100% tested. symbol parameter test condition typ. (2) 2. typical values are for t a = 25c and nominal supply voltages. max. unit c in input capacitance (for input pins) v in = 0v 4 6 pf c out output capacitance (for input/output pins) v out = 0v 8 12 pf c vpp capacitance (for cntl2/v pp ) v pp = 0v 18 25 pf 3.0v 0v test point 1.5v ai03103b device under test 2.01 v 195 c l = 30 pf (including scope and jig capacitance) ai03104b device under test 2.01 v 195 c l = 30 pf (including scope and jig capacitance) ai03104b
ac/dc parameters psd8xxfx 98/128 doc id 7833 rev 7 table 46. dc characteristics (5 v devices) symbol parameter test condition (in addition to those in table 40 ) min. typ. max. unit v ih input high voltage 4.5 v < v cc < 5.5 v 2 v cc +0.5 v v il input low voltage 4.5 v < v cc < 5.5 v ?0.5 0.8 v v ih1 reset high level input voltage (1) 0.8v cc v cc +0.5 v v il1 reset low level input voltage (1) ?0.5 0.2v cc ? 0.1 v v hys reset pin hysteresis 0.3 v v lko v cc (min) for flash erase and program 2.5 4.2 v v ol output low voltage i ol = 20 a, v cc = 4.5 v 0.01 0.1 v i ol = 8 ma, v cc = 4.5 v 0.25 0.45 v v oh output high voltage i oh = ?20 a, v cc = 4.5 v 4.4 4.49 v i oh = ?2 ma, v cc = 4.5 v 2.4 3.9 v i sb standby supply current for power-down mode csi >v cc ?0.3 v (2)(3) 50 200 a i li input leakage current v ss < v in < v cc ?1 0.1 1 a i lo output leakage current 0.45 < v out < v cc ?10 5 10 a i cc (dc) (4) operating supply current pld only pld_turbo = off, f = 0 mhz (4) 0 a/pt pld_turbo = on, f = 0 mhz 400 700 a/pt flash memory during flash memory write/erase only 15 30 ma read only, f = 0 mhz 0 0 ma sram f = 0 mhz 0 0 ma i cc (ac) (4) pld ac adder (5) flash memory ac adder 2.5 3.5 ma/mhz sram ac adder 1.5 3.0 ma/mhz 1. reset (reset ) has hysteresis. v il1 is valid at or below 0.2v cc ?0.1. v ih1 is valid at or above 0.8v cc . 2. csi deselected or internal power-down mode is active. 3. pld is in non-turbo mode, and none of the inputs are switching. 4. i out = 0 ma 5. please see figure 34 for the pld current calculation.
psd8xxfx ac/dc parameters doc id 7833 rev 7 99/128 table 47. dc characteristics (3 v devices) symbol parameter conditions min. typ. max. unit v ih high level input voltage 3.0 v < v cc < 3.6 v 0.7v cc v cc +0.5 v v il low level input voltage 3.0 v < v cc < 3.6 v ?0.5 0.8 v v ih1 reset high level input voltage (1) 0.8v cc v cc +0.5 v v il1 reset low level input voltage (1) ?0.5 0.2v cc ? 0.1 v v hys reset pin hysteresis 0.3 v v lko v cc (min) for flash erase and program 1.5 2.2 v v ol output low voltage i ol = 20 a, v cc = 3.0 v 0.01 0.1 v i ol = 4 ma, v cc = 3.0 v 0.15 0.45 v v oh output high voltage i oh = ?20 a, v cc = 3.0 v 2.9 2.99 v i oh = ?1 ma, v cc = 3.0 v 2.7 2.8 v i sb standby supply current for power-down mode csi >v cc ?0.3 v (2)(3) 25 100 a i li input leakage current v ss < v in < v cc ?1 0.1 1 a i lo output leakage current 0.45 < v in < v cc ?10 5 10 a i cc (dc) (4) operating supply current pld only pld_turbo = off, f = 0 mhz (3) 0 a/pt pld_turbo = on, f = 0 mhz 200 400 a/pt flash memory during flash memory write/erase only 10 25 ma read only, f = 0 mhz 0 0 ma sram f = 0 mhz 0 0 ma i cc (ac) (4) pld ac adder (5) flash memory ac adder 1.5 2.0 ma/mhz sram ac adder 0.8 1.5 ma/mhz 1. reset (reset ) has hysteresis. v il1 is valid at or below 0.2v cc ?0.1. v ih1 is valid at or above 0.8v cc . 2. csi deselected or internal power-down mode is active. 3. pld is in non-turbo mode, and none of the inputs are switching. 4. i out = 0 ma 5. please see figure 35 for the pld current calculation.
ac/dc parameters psd8xxfx 100/128 doc id 7833 rev 7 figure 39. input to output disable / enable ter tea input input to output enable/disable ai02863 table 48. cpld combinatorial timing (5 v devices) symbol parameter conditions -70 -90 -15 fast pt aloc turbo off slew rate (1) unit minmaxminmaxminmax t pd cpld input pin/feedback to cpld combinatorial output 20 25 32 + 2 + 10 ? 2 ns t ea cpld input to cpld output enable 21 26 32 + 10 ? 2 ns t er cpld input to cpld output disable 21 26 32 + 10 ? 2 ns t arp cpld register clear or preset delay 21 26 33 + 10 ? 2 ns t arpw cpld register clear or preset pulse width 10 20 29 + 10 ns t ard cpld array delay any macrocell 11 16 22 + 2 ns 1. fast slew rate output available on pa3-pa0, pb3- pb0, and pd2-pd0. decrement times by given amount. table 49. cpld combinatorial timing (3 v devices) symbol parameter conditions -12 -15 -20 pt aloc turbo off slew rate (1) unit min max min max min max t pd cpld input pin/feedback to cpld combinatorial output 40 45 50 + 4 + 20 ? 6 ns t ea cpld input to cpld output enable 43 45 50 + 20 ? 6 ns t er cpld input to cpld output disable 43 45 50 + 20 ? 6 ns t arp cpld register clear or preset delay 40 43 48 + 20 ? 6 ns
psd8xxfx ac/dc parameters doc id 7833 rev 7 101/128 figure 40. synchronous clock mode timing ? pld t arpw cpld register clear or preset pulse width 25 30 35 + 20 ns t ard cpld array delay any macrocell 25 29 33 + 4 ns 1. fast slew rate output available on pa3-pa0, pb3- pb0, and pd2-pd0. decrement times by given amount. table 49. cpld combinatorial timing (3 v devices) (continued) symbol parameter conditions -12 -15 -20 pt aloc turbo off slew rate (1) unit min max min max min max t ch t cl t co t h t s clkin input registered output ai02860 table 50. cpld macrocell synchronous clock mode timing (5 v devices) symbol parameter conditions -70 -90 -15 fast pt aloc turbo off slew rate (1) unit min max min max min max f max maximum frequency external feedback 1/(t s +t co ) 40.0 30.30 25.00 mhz maximum frequency internal feedback (f cnt ) 1/(t s +t co ?10) 66.6 43.48 31.25 mhz maximum frequency pipelined data 1/(t ch +t cl ) 83.3 50.00 35.71 mhz t s input setup time 12 15 20 + 2 + 10 ns t h input hold time 0 0 0 ns t ch clock high time clock input 6 10 15 ns t cl clock low time clock input 6 10 15 ns t co clock to output delay clock input 13 18 22 ? 2 ns
ac/dc parameters psd8xxfx 102/128 doc id 7833 rev 7 t ard cpld array delay any macrocell 11 16 22 + 2 ns t min minimum clock period (2) t ch +t cl 12 20 30 ns 1. fast slew rate output available on pa3-pa0, pb3- pb0, and pd2-pd0. decrement times by given amount. 2. clkin (pd1) t clcl = t ch + t cl . table 50. cpld macrocell synchronous clock mode timing (5 v devices) (continued) symbol parameter conditions -70 -90 -15 fast pt aloc turbo off slew rate (1) unit min max min max min max table 51. cpld macrocell synchronous clock mode timing (3 v devices) symbol parameter conditions -12 -15 -20 pt aloc turbo off slew rate (1) unit min max min max min max f max maximum frequency external feedback 1/(t s +t co ) 22.2 18.8 15.8 mhz maximum frequency internal feedback (f cnt ) 1/(t s +t co ?10) 28.5 23.2 18.8 mhz maximum frequency pipelined data 1/(t ch +t cl ) 40.0 33.3 31.2 mhz t s input setup time 20 25 30 + 4 + 20 ns t h input hold time 0 0 0 ns t ch clock high time clock input 15 15 16 ns t cl clock low time clock input 10 15 16 ns t co clock to output delay clock input 25 28 33 ? 6 ns t ard cpld array delay any macrocell 25 29 33 + 4 ns t min minimum clock period (2) t ch +t cl 25 29 32 ns 1. fast slew rate output available on pa3-pa0, pb3- pb0, and pd2-pd0. decrement times by given amount. 2. clkin (pd1) t clcl = t ch + t cl .
psd8xxfx ac/dc parameters doc id 7833 rev 7 103/128 figure 41. asynchronous reset / preset figure 42. asynchronous clock mode timing (product term clock) tarp register output tarpw reset/preset input ai02864 tcha tcla tcoa tha tsa clock input registered output ai02859 table 52. cpld macrocell asynchronous clock mode timing (5 v devices) symbol parameter conditions -70 -90 -15 pt aloc turbo off slew rate unit min max min max min max f maxa maximum frequency external feedback 1/(t sa +t coa ) 38.4 26.32 21.27 mhz maximum frequency internal feedback (f cnta ) 1/(t sa +t coa ?10) 62.5 35.71 27.78 mhz maximum frequency pipelined data 1/(t cha +t cla ) 71.4 41.67 35.71 mhz t sa input setup time 7 8 12 + 2 + 10 ns t ha input hold time 81 2 1 4 n s t cha clock input high time 9 12 15 + 10 ns t cla clock input low time 9 12 15 + 10 ns
ac/dc parameters psd8xxfx 104/128 doc id 7833 rev 7 t coa clock to output delay 21 30 37 + 10 ? 2 ns t arda cpld array delay any macrocell 11 16 22 + 2 ns t mina minimum clock period 1/f cnta 16 28 39 ns table 52. cpld macrocell asynchronous clock mode timing (5 v devices) (continued) symbol parameter conditions -70 -90 -15 pt aloc turbo off slew rate unit min max min max min max table 53. cpld macrocell asynchronous clock mode timing (3 v devices) symbol parameter conditions -12 -15 -20 pt aloc turbo off slew rate unit min max min max min max f maxa maximum frequency external feedback 1/(t sa +t coa ) 21.7 19.2 16.9 mhz maximum frequency internal feedback (f cnta ) 1/(t sa +t coa ?10) 27.8 23.8 20.4 mhz maximum frequency pipelined data 1/(t cha +t cla ) 33.3 27 24.4 mhz t sa input setup time 10 12 13 + 4 + 20 ns t ha input hold time 12 15 17 ns t cha clock high time 17 22 25 + 20 ns t cla clock low time 13 15 16 + 20 ns t coa clock to output delay 36 40 46 + 20 ? 6 ns t ard cpld array delay any macrocell 25 29 33 + 4 ns t mina minimum clock period 1/f cnta 36 42 49 ns
psd8xxfx ac/dc parameters doc id 7833 rev 7 105/128 figure 43. input macrocell timing (product term clock) t inh t inl t ino t ih t is pt clock input output ai03101 table 54. input macrocell timing (5 v devices) symbol parameter conditions -70 -90 -15 pt aloc turbo off unit min max min max min max t is input setup time (1) 000 ns t ih input hold time (1) 15 20 26 + 10 ns t inh nib input high time (1) 91218 ns t inl nib input low time (1) 91218 ns t ino nib input to combinatorial delay (1) 34 46 59 + 2 + 10 ns 1. inputs from port a, b, and c relative to register/ la tch clock from the pld. ale/as latch timings refer to t avlx and t lxax . table 55. input macrocell timing (3 v devices) symbol parameter conditions -12 -15 -20 pt aloc turbo off unit min max min max min max t is input setup time (1) 000 ns t ih input hold time (1) 25 25 30 + 20 ns t inh nib input high time (1) 12 13 15 ns t inl nib input low time (1) 12 13 15 ns t ino nib input to combinatorial delay (1) 46 62 70 + 4 + 20 ns 1. inputs from port a, b, and c relative to register/ la tch clock from the pld. al e latch timings refer to t avlx and t lxax .
ac/dc parameters psd8xxfx 106/128 doc id 7833 rev 7 figure 44. read timing 1. t avlx and t lxax are not required for 80c251 in page mode or 80c51xa in burst mode. t avlx t lxax 1 t lvlx t avqv t slqv t rlqv t rhqx trhqz t eltl t ehel t rlrh t theh t avpv address valid address valid data valid data valid address out ale /as a/d multiplexed bus address non-multiplexed bus data non-multiplexed bus csi rd (psen, ds) e r/w ai02895 table 56. read timing (5 v devices) symbol parameter conditions -70 -90 -15 turbo off unit min max min max min max t lv l x ale or as pulse width 15 20 28 ns t avlx address setup time (1) 4 6 10 ns t lxax address hold time (1) 7 8 11 ns t avqv address valid to data valid (1) 70 90 150 + 10 ns t slqv cs valid to data valid 75 100 150 ns t rlqv rd to data valid 8-bit bus (2) 24 32 40 ns rd or psen to data valid 8-bit bus, 8031, 80251 (3) 31 38 45 ns t rhqx rd data hold time (4) 000 ns t rlrh rd pulse width (4) 27 32 38 ns t rhqz rd to data high-z (4) 20 25 30 ns t ehel e pulse width 27 32 38 ns
psd8xxfx ac/dc parameters doc id 7833 rev 7 107/128 t theh r/w setup time to enable 6 10 18 ns t eltl r/w hold time after enable 0 0 0 ns t avpv address input valid to address output delay (5) 20 25 30 ns 1. any input used to select an internal psd function. 2. rd timing has the same timing as ds , lds , and uds signals. 3. rd and psen have the same timing. 4. rd timing has the same timing as ds , lds , uds , and psen signals. 5. in multiplexed mode, latched addresses generated from adio delay to a ddress output on any port. table 56. read timing (5 v devices) (continued) symbol parameter conditions -70 -90 -15 turbo off unit min max min max min max table 57. read timing (3 v devices) symbol parameter conditions -12 -15 -20 turbo off unit min max min max min max t lv l x ale or as pulse width 26 26 30 ns t avlx address setup time (1) 91012 ns t lxax address hold time (1) 91214 ns t avqv address valid to data valid (1) 120 150 200 + 20 ns t slqv cs valid to data valid 120 150 200 ns t rlqv rd to data valid 8-bit bus (2) 35 35 40 ns rd or psen to data valid 8-bit bus, 8031, 80251 (3) 45 50 55 ns t rhqx rd data hold time (4) 000 ns t rlrh rd pulse width 38 40 45 ns t rhqz rd to data high-z (4) 38 40 45 ns t ehel e pulse width 40 45 52 ns t theh r/w setup time to enable 15 18 20 ns t eltl r/w hold time after enable 0 0 0 ns t avpv address input valid to address output delay (5) 33 35 40 ns 1. any input used to select an internal psd function. 2. rd timing has the same timing as ds , lds , and uds signals. 3. rd and psen have the same timing for 8031. 4. rd timing has the same timing as ds , lds , uds , and psen signals. 5. in multiplexed mode latched address generated from adio delay to address output on any port.
ac/dc parameters psd8xxfx 108/128 doc id 7833 rev 7 figure 45. write timing t avlx t lxax t lvlx t avwl t slwl t whdx t whax t eltl t ehel t wlmv t wlwh t dvwh t theh t avpv address valid address valid data valid data valid address out t whpv standard mcu i/o out ale/as a/d multiplexed bus address non-multiplexed bus data non-multiplexed bus csi wr (ds) e r/ w ai02896 table 58. write timing (5 v devices) symbol parameter conditions -70 -90 -15 unit min max min max min max t lv l x ale or as pulse width 15 20 28 ns t avlx address setup time (1) 4 6 10 ns t lxax address hold time (1) 7 8 11 ns t avwl address valid to leading edge of wr (1)(2) 81520ns t slwl cs valid to leading edge of wr (2) 12 15 20 ns t dvwh wr data setup time (2) 25 35 45 ns t whdx wr data hold time (2) 455ns t wlwh wr pulse widthpulse width (2) 31 35 45 ns t whax1 trailing edge of wr to address invalid (2) 6 8 10 ns t whax2 trailing edge of wr to dpld address invalid (2)(3) 000ns
psd8xxfx ac/dc parameters doc id 7833 rev 7 109/128 t whpv trailing edge of wr to port output valid using i/o port data register (2) 27 30 38 ns t dvmv data valid to port output valid using macrocell register preset/clear (2)(4) 42 55 65 ns t avpv address input valid to address output delay (5) 20 25 30 ns t wlmv wr valid to port output valid using macrocell register preset/clear (2)(6) 48 55 65 ns 1. any input used to select an internal psd function. 2. wr has the same timing as e, lds , uds , wrl , and wrh signals. 3. t whax2 is the address hold time for dpld inputs that are used to generate sector select signals for internal psd memory. 4. assuming write is active before data becomes valid. 5. in multiplexed mode, latched address generated fr om adio delay to address output on any port. 6. assuming data is stable be fore active write signal. table 58. write timing (5 v devices) (continued) symbol parameter conditions -70 -90 -15 unit min max min max min max table 59. write timing (3 v devices) symbol parameter conditions -12 -15 -20 unit minmaxminmaxminmax t lv l x ale or as pulse width 26 26 30 t avlx address setup time (1) 91012ns t lxax address hold time (1) 91214ns t avwl address valid to leading edge of wr (1)(2) 17 20 25 ns t slwl cs valid to leading edge of wr (2) 17 20 25 ns t dvwh wr data setup time (2) 45 45 50 ns t whdx wr data hold time (2) 7 8 10 ns t wlwh wr pulse width (2) 46 48 53 ns t whax1 trailing edge of wr to address invalid (2) 10 12 17 ns t whax2 trailing edge of wr to dpld address invalid (2)(3) 000ns t whpv trailing edge of wr to port output valid using i/o port data register (2) 33 35 40 ns t dvmv data valid to port output valid using macrocell register preset/clear (2)(4) 70 70 80 ns
ac/dc parameters psd8xxfx 110/128 doc id 7833 rev 7 t avpv address input valid to address output delay (5) 33 35 40 ns t wlmv wr valid to port output valid using macrocell register preset/clear (2)(6) 70 70 80 ns 1. any input used to select an internal psd function. 2. wr has the same timing as e, lds , uds , wrl , and wrh signals. 3. t whax2 is the address hold time for dpld inputs that are used to generate sector select signals for internal psd memory. 4. assuming write is active before data becomes valid. 5. in multiplexed mode, latched address generated fr om adio delay to address output on any port. 6. assuming data is stable be fore active write signal. table 59. write timing (3 v devices) (continued) symbol parameter conditions -12 -15 -20 unit min max min max min max table 60. program, write and erase times (5 v devices) symbol parameter min. typ. max. unit flash program 8.5 s flash bulk erase (pre-programmed) (1) 330s flash bulk erase (not pre-programmed) 5 s t whqv3 sector erase (pre-programmed) 1 30 s t whqv2 sector erase (not pre-programmed) 2.2 s t whqv1 byte program 14 1200 s program/erase cycles (per sector) 100,000 cycles t whwlo sector erase timeout 100 s t q7vqv dq7 valid to output (dq7-dq0) valid (data polling) (2) 30 ns 1. the whole memory is programmed to 00h before erase. 2. the polling status, dq7, is valid tq7vqv time units before the data by te, dq0-dq7, is valid for reading. table 61. program, write and erase times (3 v devices) symbol parameter min. typ. max. unit flash program 8.5 s flash bulk erase (pre-programmed) (1) 330s flash bulk erase (not pre-programmed) 5 s t whqv3 sector erase (pre-programmed) 1 30 s t whqv2 sector erase (not pre-programmed) 2.2 s t whqv1 byte program 14 1200 s program / erase cycles (per sector) 100,000 cycles t whwlo sector erase timeout 100 s t q7vqv dq7 valid to output (dq7-dq0) valid (data polling) (2) 30 ns
psd8xxfx ac/dc parameters doc id 7833 rev 7 111/128 figure 46. peripheral i/o read timing 1. the whole memory is programmed to 00h before erase. 2. the polling status, dq7, is valid tq7vqv time units before the data by te, dq0-dq7, is valid for reading. t qxrh ( pa) t rlqv ( pa) t rlrh ( pa) t dvqv ( pa) t rhqz ( pa) t slqv ( pa) t avqv ( pa) address data valid ale /as a /d bus rd data on port a csi ai02897 table 62. port a peripheral data mode read timing (5 v devices) symbol parameter conditions -70 -90 -15 turbo off unit min max min max min max t avqv?pa address valid to data valid (1) 37 39 45 + 10 ns t slqv?pa csi valid to data valid 27 35 45 + 10 ns t rlqv?pa rd to data valid (2)(3) 21 32 40 ns rd to data valid 8031 mode 32 38 45 ns t dvqv?pa data in to data out valid 22 30 38 ns t qxrh?pa rd data hold time 0 0 0 ns t rlrh?pa rd pulse width (2) 27 32 38 ns t rhqz?pa rd to data high-z (2) 23 25 30 ns 1. any input used to select port a data peripheral mode. 2. rd has the same timing as ds , lds , uds , and psen (in 8031 combined mode). 3. data is already stable on port a.
ac/dc parameters psd8xxfx 112/128 doc id 7833 rev 7 figure 47. peripheral i/o write timing table 63. port a peripheral data mode read timing (3v devices) symbol parameter conditions -12 -15 -20 turbo off unit min max min max min max t avqv?pa address valid to data valid (1) 50 50 50 + 20 ns t slqv?pa csi valid to data valid 37 45 50 + 20 ns t rlqv?pa rd to data valid (2)(3) 37 40 45 ns rd to data valid 8031 mode 45 45 50 ns t dvqv?pa data in to data out valid 38 40 45 ns t qxrh?pa rd data hold time 0 0 0 ns t rlrh?pa rd pulse width (2) 36 36 46 ns t rhqz?pa rd to data high-z (2) 36 40 45 ns 1. any input used to select port a data peripheral mode. 2. rd has the same timing as ds , lds , uds , and psen (in 8031 combined mode). 3. data is already stable on port a. tdvqv (pa) twlqv (pa) twhqz (pa) address data out a /d bus wr port a data out ale /as ai02898 table 64. port a peripheral data mode write timing (5 v devices) symbol parameter conditions -70 -90 -15 unit min max min max min max t wlqv?pa wr to data propagation delay (1) 25 35 40 ns t dvqv?pa data to port a data propagation delay (2) 22 30 38 ns t whqz?pa wr invalid to port a tri-state (1) 20 25 33 ns 1. wr has the same timing as the e, lds , uds , wrl , and wrh signals. 2. data stable on adio pins to data on port a.
psd8xxfx ac/dc parameters doc id 7833 rev 7 113/128 figure 48. reset (reset ) timing table 65. port a peripheral data mode write timing (3 v devices) symbol parameter conditions -12 -15 -20 unit min max min max min max t wlqv?pa wr to data propagation delay (1) 42 45 55 ns t dvqv?pa data to port a data propagation delay (2) 38 40 45 ns t whqz?pa wr invalid to port a tri-state (1) 33 33 35 ns 1. wr has the same timing as the e, lds , uds , wrl , and wrh signals. 2. data stable on adio pins to data on port a. t nlnh-po t opr ai02866b reset t nlnh t nlnh-a t opr v cc v cc (min) power-on reset warm reset table 66. reset (reset ) timing (5 v devices) symbol parameter conditions min max unit t nlnh reset active low time (1) 150 ns t nlnh?po power-on reset active low time 1 ms t nlnh?a warm reset (on the psd834fx) (2) 25 s t opr reset high to operational device 120 ns 1. reset (reset ) does not reset flash memory program or erase cycles. 2. warm reset aborts flash memory program or erase cycles, and puts the device in read mode. table 67. reset (reset ) timing (3 v devices) symbol parameter conditions min max unit t nlnh reset active low time (1) 300 ns t nlnh?po power-on reset active low time 1 ms t nlnh?a warm reset (on the psd834fx) (2) 25 s t opr reset high to operational device 300 ns 1. reset (reset ) does not reset flash memory program or erase cycles. 2. warm reset aborts flash memory program or erase cycles, and puts the device in read mode.
ac/dc parameters psd8xxfx 114/128 doc id 7833 rev 7 figure 49. isc timing iscch tck tdi/tms isc outputs/tdo isc outputs/tdo t isccl t iscph t iscpsu t iscpvz t iscpzv t iscpco t ai02865 table 68. isc timing (5 v devices) symbol parameter conditions -70 -90 -15 unit min max min max min max t isccf clock (tck, pc1) frequency (except for pld) (1) 20 18 14 mhz t iscch clock (tck, pc1) high time (except for pld) (1) 23 26 31 ns t isccl clock (tck, pc1) low time (except for pld) (1) 23 26 31 ns t isccfp clock (tck, pc1) frequency (pld only) (2) 222mhz t iscchp clock (tck, pc1) high time (pld only) (2) 240 240 240 ns t iscclp clock (tck, pc1) low time (pld only) (2) 240 240 240 ns t iscpsu isc port setup time 7 8 10 ns t iscph isc port hold up time 5 5 5 ns t iscpco isc port clock to output 21 23 25 ns t iscpzv isc port high-impedance to valid output 21 23 25 ns t iscpvz isc port valid output to high-impedance 21 23 25 ns 1. for non-pld programming, erase or in isc by-pass mode. 2. for program or erase pld only.
psd8xxfx ac/dc parameters doc id 7833 rev 7 115/128 table 69. isc timing (3 v devices) symbol parameter conditions -12 -15 -20 unit min max min max min max t isccf clock (tck, pc1) frequency (except for pld) (1) 12 10 9 mhz t iscch clock (tck, pc1) high time (except for pld) (1) 40 45 51 ns t isccl clock (tck, pc1) low time (except for pld) (1) 40 45 51 ns t isccfp clock (tck, pc1) frequency (pld only) (2) 222mhz t iscchp clock (tck, pc1) high time (pld only) (2) 240 240 240 ns t iscclp clock (tck, pc1) low time (pld only) (2) 240 240 240 ns t iscpsu isc port setup time 12 13 15 ns t iscph isc port hold up time 5 5 5 ns t iscpco isc port clock to output 30 36 40 ns t iscpzv isc port high-impedance to valid output 30 36 40 ns t iscpvz isc port valid output to high-impedance 30 36 40 ns 1. for non-pld programming, erase or in isc by-pass mode. 2. for program or erase pld only. table 70. power-down timing (5 v devices) symbol parameter conditions -70 -90 -15 unit min max min max min max t lv dv ale access time from power-down 80 90 150 ns t clwh maximum delay from apd enable to internal pdn valid signal using clkin (pd1) 15 * t clcl (1) s 1. t clcl is the period of clkin (pd1). table 71. power-down timing (3 v devices) symbol parameter conditions -12 -15 -20 unit min max min max min max t lv dv ale access time from power-down 145 150 200 ns t clwh maximum delay from apd enable to internal pdn valid signal using clkin (pd1) 15 * t clcl (1) s 1. t clcl is the period of clkin (pd1).
package mechanical psd8xxfx 116/128 doc id 7833 rev 7 23 package mechanical in order to meet environmental requirements, st offers this device in different grades of ecopack ? packages, depending on their level of environmental compliance. ecopack ? specifications, grade definitions and product status are available at: www.st.com . ecopack ? is an st trademark.
psd8xxfx package mechanical doc id 7833 rev 7 117/128 figure 50. pqfp52 - 52-pin plastic quad flat package mechanical drawing 1. drawing is not to scale. table 72. pqfp52 - 52-pin plastic quad flat package mechanical dimensions symbol mm inches typ. min. max. typ. min. max. a 2.350 0.0930 a1 0.250 0.0100 a2 2.000 1.800 2.100 0.0790 0.0770 0.0830 b 0.220 0.380 0.0090 0.0150 c 0.110 0.230 0.0040 0.0090 d 13.200 13.150 13.250 0.5200 0.5180 0.5220 d1 10.000 9.950 10.050 0.3940 0.3920 0.3960 d2 7.800 ? ? 0.3070 ? ? e 13.200 13.150 13.250 0.5200 0.5180 0.5220 e1 10.000 9.950 10.050 0.3940 0.3920 0.3960 e2 7.800 ? ? 0.3070 ? ? e 0.650 ? ? 0.0260 l 0.880 0.730 1.030 0.0350 0.0290 0.0410 l1 1.600 ? ? 0.0630 0 7 0 7 n5 2 5 2 nd 13 13 ne 13 13 cp 0.100 0.0040 qfp-a nd e1 cp b e a2 a n l a1 d1 d 1 e ne c d2 e2 l1
package mechanical psd8xxfx 118/128 doc id 7833 rev 7 figure 51. plcc52 - 52-lead plastic lead chip carrier package mechanical drawing 1. drawing is not to scale. table 73. plcc52-52-lead plastic lead chip carrier mechanical dimensions symbol mm inches typ. min. max. typ. min. max. a 4.190 4.570 0.1650 0.1800 a1 2.540 2.790 0.1000 0.1100 a2 ? 0.910 ? 0.0360 b 0.330 0.530 0.0130 0.0210 b1 0.660 0.810 0.0260 0.0320 c 0.2460 0.2610 0.0097 0.0103 d 19.940 20.190 0.7850 0.7950 d1 19.050 19.150 0.7500 0.7540 d2 17.530 18.540 0.6900 0.7300 e 19.940 20.190 0.7850 0.7950 e1 19.050 19.150 0.7500 0.7540 e2 17.530 18.540 0.6900 0.7300 e 1.270 ? ? 0.050 ? ? r 0.890 ? ? 0.035 ? ? n5 2 5 2 nd 13 13 ne 13 13 plcc-b d e1 e 1 n d1 cp b d2/e2 e b1 a1 a a2 d3/e3 m l1 l c m1
psd8xxfx package mechanical doc id 7833 rev 7 119/128 figure 52. tqfp64 - 64-lead thin quad flatpack, package outline 1. drawing is not to scale. table 74. tqfp64 - 64-lead thin quad flatpack, package mechanical data symb. mm inches typ. min. max. typ. min. max. a 1.420 1.540 0.0560 0.0610 a1 0.100 0.070 0.140 0.0040 0.0030 0.0050 a2 1.400 1.360 1.440 0.0550 0.0540 0.0570 a 3.50.07.03.50.07.0 b 0.350 0.330 0.380 0.0140 0.0130 0.0150 c 0.170 0.006 d 16.000 15.900 16.100 0.6300 0.6260 0.6340 d1 14.000 13.980 14.030 0.5510 0.5500 0.5520 d2 12.000 11.950 12.050 0.4720 0.4700 0.4740 e 16.000 15.900 16.100 0.6300 0.6260 0.6340 e1 14.000 13.980 14.030 0.5510 0.5500 0.5520 e2 12.000 11.950 12.050 0.4720 0.4700 0.4740 e 0.800 0.750 0.850 0.0310 0.0300 0.0330 l 0.600 0.450 0.750 0.0240 0.0180 0.0300 l1 1.000 0.940 1.060 0.0390 0.0370 0.0420 cp 0.100 0.0040 n6 4 6 4 nd 16 16 ne 16 16 qfp-a nd e1 cp b e a2 a n l a1 d1 d 1 e ne c d2 e2 l1
part numbering psd8xxfx 120/128 doc id 7833 rev 7 24 part numbering for a list of available options (e.g., speed, package) or for further information on any aspect of this device, please contact your nearest st sales office. table 75. ordering information scheme example: psd8 1 3 f 2 v a ? 15 j 1 t device type psd8 = 8-bit psd with register logic sram capacity 1 = 16 kbit 3 = 64 kbit 5 = 256 kbit flash memory capacity 3 = 1 mbit (128k x 8) 4 = 2 mbit (256k x 8) 2nd flash memory 2 = 256 kbit flash memory + sram 3 = sram but no flash memory 4 = 256 kbit flash memory but no sram 5 = no flash memory + no sram operating voltage blank = v cc = 4.5 to 5.5v v = v cc = 3.0 to 3.6v silicon revision a = revision a speed 70 = 70ns 90 = 90ns 12 = 120ns 15 = 150ns 20 = 200ns package j = ecopack-compliant plcc52 m = ecopack-compliant pqfp52 u =ecopack-compliant tqfp64 temperature range blank = 0 to 70c (commercial) i = ?40 to 85c (industrial) option t = tape & reel packing
psd8xxfx pqfp52 pin assignments doc id 7833 rev 7 121/128 appendix a pqfp52 pin assignments table 76. pqfp52 connections (see features ) pin number pin assignments 1p d 2 2p d 1 3p d 0 4p c 7 5p c 6 6p c 5 7p c 4 8v cc 9g n d 10 pc3 11 pc2 12 pc1 13 pc0 14 pa7 15 pa6 16 pa5 17 pa4 18 pa3 19 gnd 20 pa2 21 pa1 22 pa0 23 ad0 24 ad1 25 ad2 26 ad3 27 ad4 28 ad5 29 ad6 30 ad7 31 v cc 32 ad8
pqfp52 pin assignments psd8xxfx 122/128 doc id 7833 rev 7 33 ad9 34 ad10 35 ad11 36 ad12 37 ad13 38 ad14 39 ad15 40 cntl0 41 reset 42 cntl2 43 cntl1 44 pb7 45 pb6 46 gnd 47 pb5 48 pb4 49 pb3 50 pb2 51 pb1 52 pb0 table 76. pqfp52 connections (see features ) (continued) pin number pin assignments
psd8xxfx plcc52 pin assignments doc id 7833 rev 7 123/128 appendix b plcc52 pin assignments table 77. plcc52 connections (see features ) pin number pin assignments 1g n d 2 pb5 3 pb4 4 pb3 5 pb2 6 pb1 7 pb0 8p d 2 9p d 1 10 pd0 11 pc7 12 pc6 13 pc5 14 pc4 15 v cc 16 gnd 17 pc3 18 pc2 19 pc1 20 pc0 21 pa7 22 pa6 23 pa5 24 pa4 25 pa3 26 gnd 27 pa2 28 pa1 29 pa0 30 ad0 31 ad1 32 ad2
plcc52 pin assignments psd8xxfx 124/128 doc id 7833 rev 7 33 ad3 34 ad4 35 ad5 36 ad6 37 ad7 38 v cc 39 ad8 40 ad9 41 ad10 42 ad11 43 ad12 44 ad13 45 ad14 46 ad15 47 cntl0 48 reset 49 cntl2 50 cntl1 51 pb7 52 pb6 table 77. plcc52 connections (see features ) (continued) pin number pin assignments
psd8xxfx tqfp64 pin assignments doc id 7833 rev 7 125/128 appendix c tqfp64 pin assignments table 78. tqfp64 connections (see features ) pin number pin assignments 1p d 2 2p d 1 3p d 0 4p c 7 5p c 6 6p c 5 7v cc 8v cc 9v cc 10 gnd 11 gnd 12 pc3 13 pc2 14 pc1 15 pc0 16 nc 17 nc 18 nc 19 pa7 20 pa6 21 pa5 22 pa4 23 pa3 24 gnd 25 gnd 26 pa2 27 pa1 28 pa0 29 ad0 30 ad1 31 n/d 32 ad2
tqfp64 pin assignments psd8xxfx 126/128 doc id 7833 rev 7 33 ad3 34 ad4 35 ad5 36 ad6 37 ad7 38 v cc 39 v cc 40 ad8 41 ad9 42 ad10 43 ad11 44 ad12 45 ad13 46 ad14 47 ad15 48 cntl0 49 nc 50 reset 51 cntl2 52 cntl1 53 pb7 54 pb6 55 gnd 56 gnd 57 pb5 58 pb4 59 pb3 60 pb2 61 pb1 62 pb0 63 nc 64 nc table 78. tqfp64 connections (see features ) (continued) pin number pin assignments
psd8xxfx revision history doc id 7833 rev 7 127/128 revision history table 79. document revision history date revision changes 15-oct-99 1.0 initial release as a wsi document 27-oct-00 1.1 port a peripheral data mode read timing, changed to 50 30-nov-00 1.2 psd85xf2 added 23-oct-01 2.0 document rewrit ten using the st template 07-apr-03 3.0 v2.2 template applied; voltage correction ( ta bl e 7 5 ) 12-jun-03 3.1 fix errors in pqfq52 connections 02-oct-03 3.2 correct instructions ( ta b l e 1 0 ); update disclaimer, title for edocs application 17-nov-03 3.3 correct package references ( features ) 04-jun-04 4.0 reformatted (adjust rpn list); added ta b l e 9 ; added ?u? package (64-pin) ( features , figure 3 , figure 52 ; ta bl e 7 4 , ta b l e 7 5 , ta bl e 7 8 ); 5v split from original 05-jan-06 5.0 added silicon revision a into part numbering scheme. see ta bl e 7 5 13-feb-2009 6 document reformatted. removed root part number psd813f3. sram standby mode removed. backup battery feature removed. all products are delivered in ecopack-compliant packages. section 23: package mechanical updated. minor text modifications. 05-may-2009 7 corrected pin 7 of tqfp64 package in figure 3: tqfp64 connections .
psd8xxfx 128/128 doc id 7833 rev 7 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. if any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a parti cular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. unless expressly approved in writing by an authorized st representative, st products are not recommended, authorized or warranted for use in milita ry, air craft, space, life saving, or life sustaining applications, nor in products or systems where failure or malfunction may result in personal injury, death, or severe property or environmental damage. st products which are not specified as "automotive grade" may only be used in automotive applications at user?s own risk. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or registered trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2009 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - philippines - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of PSD813F3VA-70JIT

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X